ImageMagick: convert image to PDF with A4 page size and image fit to page

If you want to keep the original resolution (lossless) you can try the following command:

convert png.png -background white -page a4 myoutput.pdf

Based on a comment posted before: https://stackoverflow.com/a/24573341/6747994

@m4tx This command only makes sense if the picture has a resolution above 500x800px, it does not zoom in, to avoid pixelated thumbnails.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)