You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I found some gif file leak image. I using below code to handle flip and mirror. It worked great,
But some gif file leak image when using library to process save or transfrom.
How can I fix it or I miss some step?
PhotoSauce.MagicScaler.ProcessImageSettings processImageSettings = new()
{
Width = gifPixelWidth,
Height = gifPixelHeight,
ResizeMode = PhotoSauce.MagicScaler.CropScaleMode.Stretch,
HybridMode = PhotoSauce.MagicScaler.HybridScaleMode.Turbo
};
//Build pipeline And add orientation
using (var pl = MagicImageProcessor.BuildPipeline(m_sResourceFilePath, processImageSettings))
{
using (var outfile = File.Create(sNewSourceFilePath))
{
if (IsVFlip)
pl.AddTransform(new OrientationTransform(Orientation.FlipVertical));
if (IsHFlip)
pl.AddTransform(new OrientationTransform(Orientation.FlipHorizontal));
pl.WriteOutput(outfile);
}
}
The text was updated successfully, but these errors were encountered:
Thanks for the repro! The sample input you've provided has an unusual mix of frame disposal methods, which is not handled correctly in MagicScaler's animation optimizer. I'll get a fix pushed for that soon.
saucecontrol
changed the title
Some gif file will leak image.
GIF animations with mixed disposal methods not handled correctly
Jul 19, 2023
Thanks again for the report. The issue was quite a bit more complicated than I expected (I had made some invalid assumptions in my initial implementation), but it's finally fixed in 11e96cc
Hi,
I found some gif file leak image. I using below code to handle flip and mirror. It worked great,
But some gif file leak image when using library to process save or transfrom.
How can I fix it or I miss some step?
The text was updated successfully, but these errors were encountered: