QuantizeImage() is 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
stanleyweike

QuantizeImage() is slow!

Post by stanleyweike »

Hi,

I was using QuantizeImage() to change image to greyscale and restrict color number to 2 color, nothing fancy, but it is extremely slow. Anyone knows anyway to boost it or any function to replace it?

thanks
rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Post by rmagick »

If you're using the Q16 build of ImageMagick and you don't specifically need 16-bits-per-channel pixels, use the Q8 build instead. It's about 2x as fast. You can determine which version of ImageMagick you're using by running

Code: Select all

convert -version
Post Reply