This project has moved and is read-only. For the latest updates, please go here.

Prevent OutOfMemory and other errors allowing only one to load at a time

May 6, 2014 at 8:19 PM
I am trying to make an image player which should play in real time. Some images can not be loaded in 1/30 of second so I would like to skip them and load the last one in queue. Is there a way to do that


If the image makes sense
May 6, 2014 at 9:36 PM
I wonder if Magick.NET is the right tool to use in a real time image player. I also don't know a good solution for the problem you are having.

You should probably make an educated guess before you read the image. Depending on the format you are reading you can maybe use MagickImageInfo to get basic image information and make a guess if you want to read or skip the image. This class should read the basic information of your image quickly. If the format you are using does not read quickly with this class you could do something with the file size. You should also do some kind of buffering to give yourself a couple of frames to make decisions.

If your image format cannot be read quickly with the MagickImageInfo class please let me know so I can see if the reading speed can be improved.

p.s. Can you check this issue again: I have contacted you a couple of times through Codeplex. Maybe those e-mails are ending up in your spam box?
May 7, 2014 at 6:12 PM
Thank you. I think buffering is the way to go then.

I never get any emails from codeplex. I checked the problem and I am replying you in that thread.