Page 1 of 1

MagickNET ReadImages consumes huge amount of memory

Posted: 2009-09-21T06:20:25-07:00
by udayakumar
Hi I am trying to load a 8 page .TIFF file using ImageList. In doing so i can watch the memory allocated for my application boosts upto almost 600M. The files is merely a 4.6M in the disk.
Is there a reason for this observation?

Re: MagickNET ReadImages consumes huge amount of memory

Posted: 2009-09-21T07:19:54-07:00
by magick

Re: MagickNET ReadImages consumes huge amount of memory

Posted: 2009-09-21T23:47:58-07:00
by udayakumar
Hi Magick,
Thanks for the reference URL. It is quite intriguing that by design imagemagick consume that memory.
I just finished testing another 32 page TIFF file. This is merely a 2.8Mb in disk. To experiment I just called the ReadImages() in MagickNet and the memory consumed after loading was 1.6Gb.

my sample code is;

string file = "c:\temp\abc.tiff";
ImageMagickNET.ImageList imlist = new ImageMagickNET.ImageList();
imlist.ReadImages(file);

Message.Show("pause here to check the taskmanager memory usage");

When I check the memory in the task manager the cosumed memory is about 1.6Gb.
It does not look like an expected behaviour.

Anyone else experienced this behaviour?