User Tools

Site Tools


cs:pdf_to_pictures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
cs:pdf_to_pictures [2019/02/07 18:21]
paolo_bolzoni
cs:pdf_to_pictures [2019/02/11 14:40]
paolo_bolzoni Add a note to keep convert memory usage under control
Line 30: Line 30:
   $ img2pdf --pagesize a4 --border 0 --output easy2print_output.pdf soutput-*png   $ img2pdf --pagesize a4 --border 0 --output easy2print_output.pdf soutput-*png
  
 +It is possible to use greater resolutions to print for example with 600DPI, just use ''​-r2400''​. But the ''​convert''​ step may require too much memory to resize the output ''​.png''​ files. It is the case, it is possible to limit the amount of memory using environment variables:
  
 +  MAGICK_TEMPORARY_PATH=. MAGICK_AREA_LIMIT=1024mb ​ convert ...
 +  ​
 +''​convert''​ will store its temporary files in the current directory and avoid using more than 1Gb of memory. The process might be slower, but it will end correctly.
 +  ​
 +Here is [[https://​www.imagemagick.org/​script/​resources.php#​environment|the list of environment variables that ImageMagick understands]].
cs/pdf_to_pictures.txt ยท Last modified: 2019/02/11 16:30 by paolo_bolzoni