Image output size incorrect
Posted: 2011-01-25T08:43:09-07:00
Hi
I am using Imagemagic via the convert command within PHP, but am getting strange results when I grab an image of a page in a pdf. When the supplied pdf where the pages are in a landscape format, the corresponding output jpg is being put into an A4-size image, with the image at the bottom of jpg and missing the righthand 20% of the corresponding pdf page.
I am using the basic convert command within PHP, i.e. "convert pdffile.pdf[0] pdfj2peg.jpg"
I have spent 2 days going thru trying differnet commandline switches for convert, with no joy
Can anyone give me any guidance on this?
Thanks
Doc
I am using Imagemagic via the convert command within PHP, but am getting strange results when I grab an image of a page in a pdf. When the supplied pdf where the pages are in a landscape format, the corresponding output jpg is being put into an A4-size image, with the image at the bottom of jpg and missing the righthand 20% of the corresponding pdf page.
I am using the basic convert command within PHP, i.e. "convert pdffile.pdf[0] pdfj2peg.jpg"
I have spent 2 days going thru trying differnet commandline switches for convert, with no joy
Can anyone give me any guidance on this?
Thanks
Doc