ImageMagick and RAM

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
srsd
Posts: 1
Joined: 2016-11-02T04:26:53-07:00
Authentication code: 1151

ImageMagick and RAM

Post by srsd »

Hello.

Perhaps my question is trivial. But he worries me.
I use the imagemagick on linux for crop and resize operations in the streams.
How to calculate how much need RAM and CPU time to perform operations?
If I run multiple processes at the same time they will be processed one by one or all at once?
Everything is possible...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: ImageMagick and RAM

Post by snibgo »

The Consulting forum is for paid consultancy, so I'm moving this to Users.

For RAM: IM v6 Q16 uses 8 bytes per pixel. There is also some overhead per image, and unpacking and compressing images also takes RAM.

For CPU: there are too many variables to predict. You can measure CPU usage.
srsd wrote:If I run multiple processes at the same time they will be processed one by one or all at once?
The question is vague. IM generally uses multi-threading, so each processing operation on an image is split between threads and hence between processors. When one operation (eg "-resize") is complete, the next one is performed.
snibgo's IM pages: im.snibgo.com
Post Reply