Help with converting images to PDF
Posted: 2016-01-21T09:32:55-07:00
Hello all,
I'm completely new to ImageMagick, have no clue what I'm doing, and desperately in need of some help... I've searched the web, looked through examples, but can't find exactly what I need and I don't really understand most of the commands.
I need to convert images (mostly tif and jpg) into a PDF. The problem comes in that I need everything to be printable, fit on Letter size paper. Large images should be shrunk to fit (maintaining scale), small images should be enlarged to fit (maintaining scale), and images should appear at the top of the page.
This is the code I'm using. I used 1700x2200 as calc'd by 200 pixels per inch for letter size paper, but the only thing that seems to be working is shrinking large images to fit.
The Version I'm using is: ImageMagick 6.7.2-7
I'm completely new to ImageMagick, have no clue what I'm doing, and desperately in need of some help... I've searched the web, looked through examples, but can't find exactly what I need and I don't really understand most of the commands.
I need to convert images (mostly tif and jpg) into a PDF. The problem comes in that I need everything to be printable, fit on Letter size paper. Large images should be shrunk to fit (maintaining scale), small images should be enlarged to fit (maintaining scale), and images should appear at the top of the page.
This is the code I'm using. I used 1700x2200 as calc'd by 200 pixels per inch for letter size paper, but the only thing that seems to be working is shrinking large images to fit.
Code: Select all
convert -page letter -resize 1700x2200\> -resize 1700x2200\< image.tif image.pdf