Skip to content

Commit

Permalink
šŸ› Fix incorrect resize flag computation in the embedde dmonitor imageā€¦
Browse files Browse the repository at this point in the history
ā€¦ transformer.
  • Loading branch information
hexawyz committed Feb 10, 2025
1 parent fd40f8d commit 16c571b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Exo/Service/Exo.Service.Core/ImageStorageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 16c571b

Please sign in to comment.