Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support padding in addition to cropping #1

Closed
scottsb opened this issue Jun 21, 2022 · 1 comment
Closed

Support padding in addition to cropping #1

scottsb opened this issue Jun 21, 2022 · 1 comment

Comments

@scottsb
Copy link

scottsb commented Jun 21, 2022

It would be awesome if this supported padding out an image to the specified aspect ratio/dimensions in addition to cropping it. Platforms like Twitter will size a posted image to fill the frame, cropping off anything outside it. You avoid this by posting the right aspect ratio, but sometimes, such as with an odd-sized screenshot, cropping would remove key content. Instead, the only solution to avoid being cropped in the timeline is to pad out the smaller dimension with blank space (ideally a selectable color).

@madzadev
Copy link
Owner

Thanks for the suggestion, the core Cropper functionality actually supports this.
I might deploy it to prod at some point.

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

No branches or pull requests

2 participants