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

Use ImageMagick #29

Closed
wants to merge 1 commit into from
Closed

Conversation

respectTheCode
Copy link

This is what I ended up doing and it is working well. If you have a better idea of how it should be configureable let me know.

Related to #23

@aheckmann aheckmann closed this in c292685 Jan 11, 2012
@aheckmann
Copy link
Owner

released in 1.0.0 - there is now an imageMagick option.

you can either subclass gm with the option which returns a new constructor with the imageMagick option set:

var imageMagick = gm.subclass({ imageMagick: true })
// imageMagick is now a subclass of gm and will apply the imageMagick
// option for every operation

imageMagick(someImg).autoOrient().write(...)

or you can use imageMagick as a one-off:

gm(someImg).autoOrient().options({ imageMagick: true}).write(...)

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