Multithreading for compression in ImageMagick

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Posts: 1
Joined: 2020-01-16T06:34:20-07:00
Authentication code: 1152

Multithreading for compression in ImageMagick

Post by faraz_pasha »

I am working on a project using ImageMagick for compressing images. In order to optimize my code, I need to know about multi-threading used for compressing the images. i would appreciate it, if you could give me some information about it. For instance, how many threads is used for implementing the algorithm, or which of these features is more important for the algorithm (the cpu generation or being corei7 instead of core i5 or cpu frequency).

User avatar
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: Multithreading for compression in ImageMagick

Post by magick »

ImageMagick uses threads to process image pixels utilizing OpenMP. For example, our kmeans algorithm is threaded. Threads are not utilized for (de)compression of images as its inherently a serial process.