Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How to write Background?

$
0
0
The command -set dispose Background will set the gif dispose method to background dispose. You will need to do this instead:
using ImageMagick;

namespace psd
{
    class Program
    {
        staticvoid Main(string[] args)
        {
            using (MagickImageCollection imgs = new MagickImageCollection("psdfile.psd"))
            {
                foreach (MagickImage img in imgs)
                {
                    img.GifDisposeMethod = GifDisposeMethod.Background;
                }

                imgs.Coalesce();
                imgs.RemoveAt(0);

                imgs.Write("pngfile%04d.png");
            }
        }
    }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>