diff --git a/src/Exo/Service/Exo.Service.Core/ImageStorageService.cs b/src/Exo/Service/Exo.Service.Core/ImageStorageService.cs index 3734b85..b47281a 100644 --- a/src/Exo/Service/Exo.Service.Core/ImageStorageService.cs +++ b/src/Exo/Service/Exo.Service.Core/ImageStorageService.cs @@ -349,8 +349,9 @@ bool shouldApplyCircularMask sourceRectangle.Top != 0 || sourceRectangle.Width != metadata.Width || sourceRectangle.Height != metadata.Height; - bool shouldResize = targetSize.Width == sourceRectangle.Width && - targetSize.Height == sourceRectangle.Height; + bool shouldResize = shouldCrop ? + targetSize.Width == sourceRectangle.Width && targetSize.Height == sourceRectangle.Height : + targetSize.Width == metadata.Width && targetSize.Height == metadata.Height; bool isCorrectSize = !(shouldCrop || shouldResize); // First and foremost, adjust the animation stripping requirement based on the image and the supported formats of the device.