LazZiya / ImageResize

Image resizing tool for .Net applications with ability to add text/image watermark, Supports animated images as well.
http://docs.ziyad.info
MIT License
66 stars 16 forks source link

AddImageWatermark..., gif transparent background is black #12

Open wongsimon opened 1 year ago

wongsimon commented 1 year ago

the background is black.

22

ahead

code:

using (var img = AnimatedImage.FromFile(this.MapPath("22.gif", true)))
            {
                img.AddImageWatermark(this.MapPath("AAA.png", true),
                    new LazZiya.ImageResize.ImageWatermarkOptions()
                    {
                        Location = TargetSpot.TopLeft,
                        Margin = 1,
                    })
                   .SaveAs(this.MapPath("ahead.gif", true));
            }

what should I do?

LazZiya commented 1 year ago

I will deep dive into this once I have time to do so.