Advertisement
metalx1000

Converting Large Files with ImageMagick

Jun 25th, 2017
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #converting large files with ImageMagick
  2. #get a large image
  3. wget "https://upload.wikimedia.org/wikipedia/commons/f/f8/Fulmer_Falls_Closeup_3000px.jpg" -O 1.jpg
  4.  
  5. #make it many images
  6. for i in `seq 1 200`;do cp 1.jpg $i.jpg;done
  7.  
  8. #Convert to PDF and get an error
  9. convert *.jpg 1.pdf
  10.  
  11. #up your cache limits for ImageMagick
  12. sudo vim /etc/ImageMagick-6/policy.xml
  13. #memory to 3GiB
  14. #Disk to 8GiB
  15.  
  16. #also change temporary-path to save SSD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement