Code: Select all
parallel -P -1 convert {} -compress JPEG -quality 80 -resize 1100 -limit memory 128MiB -limit map 256Mib -limit area 256Mib compressed-{} ::: %N
Code: Select all
convert in.pdf -compress JPEG -quality 80 -resize 1100 -limit memory 128MiB -limit map 256Mib -limit area 256Mib compressed-pdf.pdf
And here is what is going on: first, ghostscript starts, it works for several minutes and consumes about 100MB of memory, then convert process starts and it eats 3 GB of mmory, it can eat even more, but I have to kill it. What am I doing wrong?
PDF consists of 300 pages and 150MB size. I have no idea why IM needs so much memory for 150mb pdf...
Version 6.7.7-10