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

preserve aspect ratio option #16

Merged
merged 2 commits into from
Dec 21, 2016
Merged

preserve aspect ratio option #16

merged 2 commits into from
Dec 21, 2016

Conversation

bertbesser
Copy link

Hi,

I included an option (the flag --preserve) that allows to preserve the aspect ratio if only height or only width is given -- previously, the thumbnail would have width 0 resp. height 0.

Example use case:
when thumbnailing (lots of) photos using the max-option, then most thumbnails are fine (e.g. for 4:3-photos or 16:9-photos) whereas panoramic photos are of very small height. Here, panoramic thumbnails are of no value. This can now be fixed using e.g. the options

--height=200 --preserve

Best regards
ugh_bough

@mattes
Copy link
Owner

mattes commented Dec 21, 2016

thanks for the PR!

@mattes mattes merged commit 9a175cd into mattes:master Dec 21, 2016
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