Hello. I have a php-gd generated png image that I wish to convert to TIFF in 72x72dpi
The PNG image should be 72x72dpi but there are no way to specify resolution in php-gd. I believe the png image generated doesn't actually have resolution information in it. $ covert result.png result.tiff would generate a tiff image. Open this image with envince, print it, result is an empty (white) page being printed. Open this image with gimp, gimp gives "Warning: resolution units meaningless" but still opens the image. Save it in gimp, re-open in envince, print result is expected, 72dpi OKay. It looks like the generated TIFF 'has wrong resolution information' and GIMP fixed it by attaching default resolution '72x72dpi' (GIMP default is 72x72), thus the file saved from GIMP works. I tried these commands, the result is the same (same GIMP error message and same empty (white) page being printed by evince): $ convert -density 72 /tmp/dd.png /tmp/dd.tiff $ convert -density 72 /tmp/dd.png -resample 72x72 /tmp/dd.tiff $ convert /tmp/dd.png -resample 72x72 /tmp/dd.tiff $ convert /tmp/dd.png /tmp/dd.tiff Any hint on how to generate a TIFF with given resolution? Thanks a lot in advance! -- [EMAIL PROTECTED] SDF Public Access UNIX System - http://sdf.lonestar.org _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
