- 2012.04.11 10:25 "Re: [Tiff] tiff2pdf fit image to page - how does it scale?", by Jürgen_Buchmüller
- 2012.04.11 22:38 "Re: [Tiff] tiff2pdf fit image to page - how does it scale?", by James Cloos
2012.04.11 09:48 "[Tiff] tiff2pdf fit image to page - how does it scale?", by David E. Meier
I am using this command to convert fax images to PDF files:
tiff2pdf -p A4 -o output.pdf input.tif
Some images get cropped during conversion and part of the fax header on top of the page is cut off. In the original image the header is all there. So, it seems to me that the image is not properly scaled to the page size. I can set the paper size manually with the -w and -l options but then the page is not A4 anymore.
So I thought I could scale the image before conversion and I look at a few other images. However, this got me confused on how the images are scaled in tiff2pdf.
For example: I have an image of size (w:1728 h:1138) and it gets stretched vertically to fit the page. Then I have an image of 1728x2322 where part of the header is cropped.
If I calculate the size of an A4 page with 1728 pixels width it would give me 2444 pixels in height, thus, larger than the image that is getting cropped.
Can anyone shine a little light on this matter? Thanks,