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

Image has light gray borders after resizing #23

Closed DarkEyeDragon closed 1 month ago

DarkEyeDragon commented 2 months ago

Describe the bug After resizing the image there is a 1px wide border seemingly in the default border color

To Reproduce

image.ScaleByHeight(300).SaveAs("file.jpg");

Version

Expected behavior rescale without having the gray borders.

Screenshots image Edges of the image are extended using Windows Paint.

Desktop (please complete the following information):

LazZiya commented 1 month ago

I did several tries, and all worked as expected, no gray border even after extending the edges with windows paint:

image

Make sure the original image do not contain the border.

DarkEyeDragon commented 1 month ago

Wasn't able to get it sorted. But most likely something on my end then. Managed to get it working using another library.