Skip to content

Allowing use of GraphicsMagick as conversion tool#3

Open
wcgallego wants to merge 2 commits intotechnopagan:masterfrom
wcgallego:master
Open

Allowing use of GraphicsMagick as conversion tool#3
wcgallego wants to merge 2 commits intotechnopagan:masterfrom
wcgallego:master

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.

1 participant