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 resizing with crop #9

Open
NARKOZ opened this issue Feb 25, 2019 · 5 comments
Open

Support resizing with crop #9

NARKOZ opened this issue Feb 25, 2019 · 5 comments

Comments

@NARKOZ
Copy link
Contributor

NARKOZ commented Feb 25, 2019

Is there any way to use geometry 400x300# as in imagemagick?

It resizes and crops if necessary to maintain aspect ratio (centre gravity) http://markevans.github.io/dragonfly/imagemagick#processors

@did
Copy link

did commented Sep 27, 2019

@tomasc, do you think we could rely on the ImageProcessing gem? https://github.com/janko/image_processing/blob/master/doc/vips.md#methods.
It looks like they provide all the transformations helpers we'd need for Dragonfly.
What are your thoughts about that?

@tomasc
Copy link
Owner

tomasc commented Sep 27, 2019

@did I think so! Feel free to submit a PR.

@did
Copy link

did commented Sep 27, 2019

that was quick! thanks @tomasc! Can't promise anything. I'll give it a try.

@tomasc
Copy link
Owner

tomasc commented Sep 27, 2019

@did will be cool, thank you!

@evenreven
Copy link

This is the only thing keeping me on the dumpster fire that is imagemagick. I really wish I had the skills to help with implementing this.

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

4 participants