Comment 6 for bug 1302987

Revision history for this message
su_v (suv-lp) wrote :

Patch tested "successfully" [*] with r13274 on OS X 10.7.5, ImageMagick 6.8.8-10.

[*] Due to the lack of assorted test images (with known fail/success status), I tested random bitmap images in the 'Download' folder: ImageMagick doesn't seem to return 'ok' x/yResolution values for PNG images (at least I didn't encounter one), but I saw the fallback getting used for a TIF and a JPEG image (verified with a modified version of the patch (attached) which outputs the resolution to the console (thx to JazzyNico for the initial version of the debug macro)).

[ Unrelated observation: readpng() seems to return rather random values if the file does not provide the required information (can vary for the same file in the current session if another bitmap was imported in-between repeated runs, and seems to vary across sessions.... ]