Converting PNG files to single PDF with 2 per row
Posted: 2017-12-07T10:44:50-07:00
Hi all,
I have spent all day fiddling with ImageMagick and am really struggling, hope someone can help.
I have 38 PNG files, each image is 600x230 in size. I need to put these into a single PDF.
If I do:
convert -page A4 *.png fronty.pdf
I can get them all into a PDF, but only 1 image per page and at 100% zoom factor in Acrobat the image fills the page horizontally. If I do:
convert -append -page A4 *.png fronty.pdf
It shrinks the images so they all fit on one page (I don't want them shrinked!). It would be nice if I could get them tiled, 2 across and 4 rows, so 8 images per page.
I found the -tile option but I couldn't get it to work with compress. Then I found this:
montage -tile 2x *.png fronty.pdf
This is getting me closer, I now have 2 images per row, but now there's no pagination, it's just a big long PDF with no page breaks, and there's an arbitrary gap between each row which I need to make smaller. If I add -page A4 it shrinks so they're all on one page.
But the main problem is that the image quality is awful, it's like it's really compressed the images down and all the detail has been lost. I've been trying to switch off lossless compression (+compress and -compress Zip), and mucked around with the -quality and -resample options, and -density but getting nowhere.
Can someone help me figure this out, I just want two images per row, with a customisable gap, and for the PDF to be paginated. Any idea?
Thanks.
I have spent all day fiddling with ImageMagick and am really struggling, hope someone can help.
I have 38 PNG files, each image is 600x230 in size. I need to put these into a single PDF.
If I do:
convert -page A4 *.png fronty.pdf
I can get them all into a PDF, but only 1 image per page and at 100% zoom factor in Acrobat the image fills the page horizontally. If I do:
convert -append -page A4 *.png fronty.pdf
It shrinks the images so they all fit on one page (I don't want them shrinked!). It would be nice if I could get them tiled, 2 across and 4 rows, so 8 images per page.
I found the -tile option but I couldn't get it to work with compress. Then I found this:
montage -tile 2x *.png fronty.pdf
This is getting me closer, I now have 2 images per row, but now there's no pagination, it's just a big long PDF with no page breaks, and there's an arbitrary gap between each row which I need to make smaller. If I add -page A4 it shrinks so they're all on one page.
But the main problem is that the image quality is awful, it's like it's really compressed the images down and all the detail has been lost. I've been trying to switch off lossless compression (+compress and -compress Zip), and mucked around with the -quality and -resample options, and -density but getting nowhere.
Can someone help me figure this out, I just want two images per row, with a customisable gap, and for the PDF to be paginated. Any idea?
Thanks.