Skip to content

Conversation

@Ayoub-Mabrouk
Copy link
Contributor

  • Reorganize logic with early return for invalid height
  • Extract constraint checks to variables for better readability
  • Reduce nested conditions by calculating new dimensions upfront
  • Maintain existing behavior for DoNotUpsize and PreserveAspectRatio

- Reorganize logic with early return for invalid height
- Extract constraint checks to variables for better readability
- Reduce nested conditions by calculating new dimensions upfront
- Maintain existing behavior for DoNotUpsize and PreserveAspectRatio
@freekmurze freekmurze merged commit 317d9e3 into spatie:main Apr 24, 2025
1 check passed
@freekmurze
Copy link
Member

Thanks!

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