-
Prerequisites
DescriptionI have the gif: That is strange, because if I make a gif from the Steps to Reproduceusing ImageMagick;
using System;
using System.Net.Http;
MagickImageCollection imageCollection = new(await new HttpClient().GetStreamAsync("https://user-images.githubusercontent.com/77853483/122071182-d5f23000-cdf6-11eb-92fa-359fdfdb5de8.gif"), MagickFormat.Gif);
imageCollection.Write($"{AppDomain.CurrentDomain.BaseDirectory}gif.gif", MagickFormat.Gif);
imageCollection[5].Write($"{AppDomain.CurrentDomain.BaseDirectory}gif.png", MagickFormat.Png); System Configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is happening because each frame of your gif contains only the changes compared to the previous frame. You will need to call p.s. You should also need to do |
Beta Was this translation helpful? Give feedback.
This is happening because each frame of your gif contains only the changes compared to the previous frame. You will need to call
imageCollection.Coalesce
before writing the image to make sure each frame contains all the pixels.p.s. You should also need to do
using MagickImageCollection imageCollection