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

Crop to Aspect Ratio #189

Closed
medokin opened this issue Apr 3, 2018 · 4 comments
Closed

Crop to Aspect Ratio #189

medokin opened this issue Apr 3, 2018 · 4 comments

Comments

@medokin
Copy link

medokin commented Apr 3, 2018

Trying to express this:

convert barn.jpg -gravity center -crop 3:2 barn_crop_3to2.png
See: https://stackoverflow.com/a/49561441/1768955

with:

image.Crop(new MagickGeometry("3:2"), Gravity.Center)

returns a 1x1px Square

@dlemstra
Copy link
Owner

dlemstra commented Apr 3, 2018

It looks like you found a missing feature. Working on a patch to make this possible.

@dlemstra
Copy link
Owner

I published version 7.4.4.0 and this should now work. Can you give it another try?

@medokin
Copy link
Author

medokin commented Apr 18, 2018

Thanks! Sure, will do.

@medokin
Copy link
Author

medokin commented Apr 18, 2018

Works as expected. Thanks!

@medokin medokin closed this as completed Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants