Skip to content

Fix ImageCropper skipping downscale for tall images#1531

Merged
imnasnainaec merged 2 commits into
masterfrom
fix/image-cropper-downscale-height-check
Jul 15, 2026
Merged

Fix ImageCropper skipping downscale for tall images#1531
imnasnainaec merged 2 commits into
masterfrom
fix/image-cropper-downscale-height-check

Conversation

@imnasnainaec

@imnasnainaec imnasnainaec commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The pre-crop downscale threshold checked Image.Width twice instead of checking Width and Height, so a tall image (height > 1000, width <= 1000) was never downscaled before cropping.

Devin review: https://app.devin.ai/review/sillsdev/libpalaso/pull/1531


This change is Reviewable

The pre-crop downscale threshold checked Image.Width twice instead of
checking Width and Height, so a tall image (height > 1000, width <= 1000)
was never downscaled before cropping.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Palaso Tests

     4 files  ±0       4 suites  ±0   10m 48s ⏱️ + 1m 10s
 5 105 tests +2   4 871 ✅ +2  234 💤 ±0  0 ❌ ±0 
16 627 runs  +6  15 906 ✅ +6  721 💤 ±0  0 ❌ ±0 

Results for commit 7747a64. ± Comparison against base commit ba68a4a.

♻️ This comment has been updated with latest results.

@imnasnainaec
imnasnainaec marked this pull request as ready for review July 13, 2026 18:03
@imnasnainaec imnasnainaec self-assigned this Jul 13, 2026

@jasonleenaylor jasonleenaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@jasonleenaylor reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on imnasnainaec).

@imnasnainaec
imnasnainaec merged commit 2959cb9 into master Jul 15, 2026
11 checks passed
@imnasnainaec
imnasnainaec deleted the fix/image-cropper-downscale-height-check branch July 15, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants