Re: Convert allocates four-times more memory it needs?

[email protected] Tue, 18 Aug 2009 13:24:53 -0700
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
> It seems convert allocates four times more memory it needs

We're using ImageMagick 6.5.4-10, the latest release.  We tried these
commands:

  convert logo: -resize  4178x2774! dsc_6436_fx2.jpeg

Identify shows the result is similar to your image:

  identify dsc_6436_fx2.jpeg
  dsc_6436_fx2.jpeg JPEG 4178x2774 4178x2774+0+0 8-bit DirectClass 404kb

Now when we resize the image we get reasonable results:

  convert -debug all -quality 85 -size 800x600 dsc_6436_fx2.jpeg -resize 800x600 jpg:/dev/null |& grep heap
  open dsc_6436_fx2.jpeg[0] (heap memory, 1045x694 5.533mb)
  open dsc_6436_fx2.jpeg[0] (heap memory, 800x694 4.236mb)
  open dsc_6436_fx2.jpeg[0] (heap memory, 800x531 3.241mb)