keep running out of memory!

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
User avatar
magick
Site Admin
Posts: 11039
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-04-28T19:04:27-07:00

If you have an older version of ImageMagick try upgrading. If you are using a recent version and are reading GIF images wait for the 6.2.7-2 release in a few days. We have a patch for a small GIF memory leak.

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

Post by magick » 2006-05-01T09:41:58-07:00

ImageMagick only controls memory usage for the pixel cache. If you are doing color reduction, for example, ImageMagick will allocate as much memory as it needs without regard to the resource limits. You can track usage by setting the MAGICK_DEBUG environment variable to 'all'. We have a new architecture document that discusses the pixel cache in detail at http://www.imagemagick.org/script/architecture.php.

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

Post by magick » 2006-05-01T13:30:51-07:00

MagickCompareImages() returns a wand so you must destroy it to avoid a memory leak:
  • compare_wand = MagickCompareImages(iwand_1, wand_2, MeanSquaredErrorMetric, &distortion);
    ...
    DestroyMagickWand(compare_wand);

Post Reply