need help : some images got broken when sequence images are generated from a gif #1209
Unanswered
meganeroppy
asked this question in
Help
Replies: 1 comment 1 reply
-
I am not sure what you are trying to do. This gif image seems to be optimized and some of the frames contain only the changed pixels. If you want to get each frame as it is shown I would advise you to call |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
What I want to do is quite simple one that converts a gif into sequence png images, but it doesn't look performing really well.
The result is like one I attached to this post, like some images, that contains pixels that aren't changed from previous frame, are not well converted and get broken.
How I use Magick.NET is this below.
MagickImageCollection collection= new MagickImageCollection(gifPath, MagickFormat.Gif87);
int c = 0;
foreach (var item in images)
{
var outPath = outDir + "/" + c.ToString() + ".png";
item.Write(outPath, MagickFormat.Png);
}
Is there any way to solve this problem?
Any advise or comment will be appreciated.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions