Page 1 of 1

Group4 Compression Too Slow

Posted: 2017-07-31T20:57:54-07:00
by James Nisenbom
Howdy IM community!
I've run into a problem where

Code: Select all

magick.exe convert -compress Group4 -type bilevel -monochrome input/images/path file_out.pdf
takes 25 seconds to convert 18 PNGs (ranging in size from 58kb to 140kb) into a PDF. I need to repeat this action about 9,000 times. Any suggestions

(more details available on this StackOverflow Post - https://stackoverflow.com/q/45428547/3491991)

Re: Group4 Compression Too Slow

Posted: 2017-07-31T22:27:12-07:00
by fmw42
I do not know if this will help, but use proper IM 7 syntax and remove the convert and read the input first

Code: Select all

magick.exe input/images/path -monochrome -compress Group4 -type bilevel file_out.pdf
Note I suspect that -type bilevel may be redundant.