imagemagick - How to properly generate an A3 sized pdf from jpg with convert -


on linux using imagemagick tool convert, want convert large jpg files a3 pdfs <= 10mb in order print files best quality @ store.

when running:

$ convert summer-bokeh.jpg -quality 100 -density 300 -resize 2480x3508! summer_resized.pdf 

i'm trying force a3 pixel size 300 dpi, resulting pdf has size of 595x842. if try specifying -page a3 option, resulting pdf smaller, size of 202x286.

note problem occur pdf. if try same convert command, output file "summer_resized.jpg", resulting image correctly resized. unfortunately, store's printer support pdfs.

any idea how fix ? , on bonus question, there way specify max-filesize expected (here <= 10mb) ?

thank you

a3 11.69" x 16.53", @ 300 dpi, need 3507x4959 pixels. so, if this:

convert -quality 100% input.jpg -resize 3507x4959 output.pdf 

you this:

identify -verbose output.pdf image: output.pdf   format: pdf (portable document format)   mime type: application/pdf   class: directclass   geometry: 3507x4959+0+0   resolution: 72x72   print size: 48.7083x68.875   units: undefined   type: truecoloralpha   endianess: undefined   colorspace: srgb   ... 

and weighs in @ 5mb. think printer ignore resolution of 72 dpi.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -