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
I have verified that I am running the latest version of ImageSharp
I have verified if the problem exist in both DEBUG and RELEASE mode
I have searched open and closed issues to ensure it has not already been reported
Description
When resizing an image that is smaller than the target image using Mode.Min, the resulting image is padded to be square instead of keeping the size of the original image.
I really don't feel like entering any other details, because the bug seems to be caused by a simple mistake - the Size is created using sourceWidth as width and height instead of using sourceWidth and sourceHeight.
Activity
Pass correct output size in ResizeMode.Min SixLabors#892
Pass correct output size in ResizeMode.Min SixLabors#892
JimBobSquarePants commentedon Apr 23, 2019
Yup that's a bug! Thanks for the PR. 👍
Pass correct output size in ResizeMode.Min #892 (#893)
WIP: #12 Synch with master and improve performance of decoders (#986)