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

Add support for thumbnail #93

Merged
merged 1 commit into from Nov 8, 2012
Merged

Conversation

danmilon
Copy link
Contributor

@danmilon danmilon commented Nov 7, 2012

Currently the helper .thumb first performs a .size, computes crop dimensions, and then crops and resizes the image.

I want to generate thumbnails but tried to avoid this two-pass method. I bumped into a superuser question which uses the -thumbnail option, but this is not available in gm.

This pull requests extends args with support for thumbnail, includes a simple test, and an example. I reckon thumbnail might conflict with thumb in a naming sense, but its the official name.

aheckmann added a commit that referenced this pull request Nov 8, 2012
@aheckmann aheckmann merged commit 42c6490 into aheckmann:master Nov 8, 2012
@aheckmann
Copy link
Owner

yeah looks good. I merged the addition.

we still need to document their differences and that graphicsmagick doesn't support this method. its would be great if you could write up something quick. all the docs are in the gh-pages branch.

thanks again!

@danmilon
Copy link
Contributor Author

danmilon commented Nov 8, 2012

Actually it does. Yup, I'll send another PR soon with the docs.

@aheckmann
Copy link
Owner

oh nice! thanks again.

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.

None yet

2 participants