Skip to content

fix(action): preserve aspect ratio when resizing#720

Merged
danadajian merged 2 commits intomainfrom
fix-image-size
Mar 17, 2026
Merged

fix(action): preserve aspect ratio when resizing#720
danadajian merged 2 commits intomainfrom
fix-image-size

Conversation

@danadajian
Copy link
Contributor

@danadajian danadajian commented Mar 17, 2026

📝 Description

  • Changed image.contain() to image.cover() in resize logic

    • contain — fits the image within the target dimensions, adding whitespace padding to fill the remaining space
    • cover — scales the image to fill the target dimensions while preserving aspect ratio, cropping any overflow instead of adding whitespace
  • Also added a light gray border to all screenshots to improve the experience for whitespace

@danadajian danadajian merged commit cb09dd1 into main Mar 17, 2026
2 checks passed
@danadajian danadajian deleted the fix-image-size branch March 17, 2026 20:40
@eg-oss-ci
Copy link

🎉 This PR is included in version 1.35.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants