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

Allowing use of GraphicsMagick as conversion tool #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wcgallego
Copy link

Hey! Thanks for putting this together - caught your Velocity 2016 talk and was psyched to implement at my shop.

We're using GraphicsMagick over here so I added an option to use such. Not hung up on the implementation, just 'worked'.

I also pulled out the conversion to png and base64 for the input image from the while loop as it was unnecessary to do it on each iteration, shaving off a few ms.

Will Gallego added 2 commits August 5, 2016 15:10
We're computing the original image png base64 on every iteration of the
loop, which is pretty wasteful.

In the worst case scenario here, we never do any loops in the while and
we calculate the original image png base64 unnecessarily, but that
should be a rare enough scenario where this optimization is preferred
By default, it will still use ImageMagick (convert command) for
conversion from jpeg -> png. Supplying imagick as the third param will
also do this. Using gmagick, though, will use GraphicsMagick tool for
this conversion
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

1 participant