Group4 Compression Too Slow

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
James Nisenbom
Posts: 1
Joined: 2017-07-31T20:48:48-07:00
Authentication code: 1151

Group4 Compression Too Slow

Post 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)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Group4 Compression Too Slow

Post 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.
Post Reply