Multi-Convert issues

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rottmanj

Multi-Convert issues

Post by rottmanj »

I have a app that I am writing in perl where I have to support two different incoming file types (pdf,tif). But my output/display to the user needs to be in either png or pdf. Going from pdf to png works perfectly fine.

The issue that I am having is when I convert the tif file to a png or to a pdf(then to a png). If I go Tiff -> Png the file width is stretched. I know what the issue with this is. The origin tif file has the dimensions of 1728x1070 with a density of 204.

Now if I go Tif -> Pdf > Png I am left with a huge amount of whitespace on the right side of the image. So this again is not good.

Is there any way that I can convert the tif to a png, keep the same denisity, but have the image dimensions in proper print format?
Post Reply