4

I am creating gifs using Magick.NET, but the file sizes are bigger than they should be.

            ImageMagick.MagickImageCollection col = new MagickImageCollection();

            col.Add(new ImageMagick.MagickImage("1.png"));
            col.Add(new ImageMagick.MagickImage("2.png"));

            for (int i = 0; i < col.Count; i++)
            {
                col[i].AnimationDelay = 0;
            }

            col.Write("test.gif");

I have tried setting the quality, transparency, format, and other options, but they either to do nothing or even increase the file size even more. What method is there for reducing the file size or quality of the gif?

dlemstra
  • 7,813
  • 2
  • 27
  • 43
John
  • 5,942
  • 3
  • 42
  • 79

1 Answers1

5

I have added a method named Optimize to the MagickImageCollection class. This should reduce the size of an animated gif. Feel free to post a message at the discussion board if you need more help.

dlemstra
  • 7,813
  • 2
  • 27
  • 43