Low Memory Image Access

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Low Memory Image Access

Post by magick »

Use MagickSetResourceLimit() and set the memory and map limits to something low like 16mb. This forces the pixel cache to disk and only a few scanlines at a time are allocated in memory. Your process will run slower but it will consume far less memory.
Post Reply