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

New Post: I'm trying hold JPG image to gif format .A little fuzzy

$
0
0
code        
                     MagickNET.UseOpenCL = false;
        using (MagickImage image = new MagickImage(@"c:\1.jpg"))
          {
               
               
               image.GifDisposeMethod=GifDisposeMethod.Undefined;
               image.CompressionMethod=CompressionMethod.LZW;
               image.Format = MagickFormat.Gif;
               image.Write(@"c:\11.Gif");

//I tried MagickImageCollection, it's no use.
   //using (MagickImageCollection col =new MagickImageCollection(image.ToByteArray()))
                    //{
                        
                    //    col.Coalesce();
                    //    col.Optimize(); 
                    //    col.OptimizeTransparency();
                    //    col.Write(@"c:\00.Gif");
                        
                    //}
          }
        
The first one is jpg
The second one is gif

Image
Image

Viewing all articles
Browse latest Browse all 3693

Trending Articles