Group 4 compression and pixel aspect ratio
Posted: 2013-02-26T05:53:29-07:00
Our photographer is complaining that whenever he tries and opens my IM tiffs in Photoshop it pops up a warning about pixel aspect ratio correction. I hadn't noticed this before because I don't use Photoshop. So I did some experimenting with my command lines and found the last step -compress Group4 is the culprit, no other compression formats I've tried make Photoshop emit this warning. Looking at the tiff header I see this:
I hate to ask this question because I've seen a lot of posts here on this same subject but I can't figure any of the answers out or apply them to my book page images. Because I use -trim the output size of each page image, the output size is a little different for each image so I need a solution that I can apply across all images or be able to calculate programmatically for each image.
Here is my command line for a sample image:
Removing the -compress option or changing it to LZW doesn't cause the warning.
I've experimented with using -density in various places, including after the -compress but it doesn't seem to make a difference.
My sample image can be found here:
http://ucblibrary4.berkeley.edu/~apollock/imagemagick
Code: Select all
<tiff:XResolution>100/1</tiff:XResolution>
<tiff:YResolution>150/1</tiff:YResolution>
Here is my command line for a sample image:
Code: Select all
convert underneath_243_L.CR2 -crop 5330x3145+300+250 +repage -rotate 270 -bordercolor black -border 1x1 -fuzz 90% -trim -crop -180+0 +repage -resize 150% -level 18% -sharpen 0x3.5 -normalize +contrast -background black -deskew 40% +repage -threshold 40% -depth 1 -bordercolor black -border 1 -fuzz 95% -fill white -draw "color 0,0 floodfill" -alpha off -shave 1x1 -compress Group4 underneath_243_L.tif
I've experimented with using -density in various places, including after the -compress but it doesn't seem to make a difference.
My sample image can be found here:
http://ucblibrary4.berkeley.edu/~apollock/imagemagick