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

AllowOutputEnlargement & Zoom-crop #78

Merged
merged 1 commit into from
Jan 24, 2017

Conversation

kulmjens
Copy link
Contributor

Hi there,

I have an image (978x275) that is smaller than the desired size (1600x600) and I want it to be enlarged and cropped around the center.
If I try w=1600,h=600,zc=C,aoe=1 the output remains at 978x275.
If I try w=1600,h=600,zc=C the output remains at 978x275.
If I try w=1600,h=600,aoe=1 the output enlarges to 1600x450, which is not enough as it should be 2134x600.

With convert input.jpg -resize '1600x600^' -gravity Center -crop 1600x600+0+0 +repage output.jpg it works. Note the Circumflex (^) behind the resize setting and the quotation marks.

If I try now w=1600,h=600,zc=C,aoe=1 the output enlarges and zoom-crops to the center and is exactly 1600x600.

I don't know if that is the right place for this bugfix, but it works as expected. :-)

Hi there,

I have an image (978x275) that is smaller than the desired size (1600x600) and I want it to be enlarged and cropped around the center.
If I try `w=1600,h=600,zc=C,aoe=1` the output remains at 978x275.
If I try `w=1600,h=600,zc=C` the output remains at 978x275.
If I try `w=1600,h=600,aoe=1` the output enlarges to 1600x450, which is not enough as it should be 2134x600.

With `convert input.jpg -resize '1600x600^' -gravity Center -crop 1600x600+0+0 +repage` it works. Note the Circumflex (^) behind the resize setting and the quotation marks.

I don't know if that is the right place for this bugfix, but it works as expected. :-)
@JamesHeinrich JamesHeinrich merged commit b46a4bb into JamesHeinrich:master Jan 24, 2017
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