MagickNET ReadImages consumes huge amount 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
udayakumar

MagickNET ReadImages consumes huge amount of memory

Post 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?
udayakumar

Re: MagickNET ReadImages consumes huge amount of memory

Post 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?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 10 guests