Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support for webp? #60

Open
bf4 opened this Issue · 7 comments

3 participants

@bf4
Owner

Issue by jphastings
Thursday Jan 23, 2014 at 10:53 GMT
Originally opened as #97


RMagick doesn't seem to support webp (despite convert on my system working, and calling out to cwebp). Is this implemented or planned?

@bf4
Owner

not that I know of.. yet I'd take a PR

@pavoni

+1

@bf4
Owner

@pavoni PR's appreciated :)

@pavoni

@bf4 I think this is configuration. Working on a Mac I needed ImageMagick 6.8.9-8 (which I couldn't get via homebrew) and then to re-install the rmagic gem.

This then works
image

If it helps anyone, the steps I followed were:-

  1. Uninstalled the hombrew version of ImageMagik to make sure I was using the right version.
  2. Got the later version of ImageMagik from http://cactuslab.com/imagemagick
  3. Fixed up the package path http://stackoverflow.com/a/12434238/2008325

So I suspect no PR needed :-)

@bf4
Owner

Perhaps this could turn into a PR which tests if we have webp support, else specifies the first version of ImageMagick that has it? Or to document in the README? (I haven't done any research myself apart from reading this issue, but am happy to help guide and support a PR).

@pavoni

The code above will throw an exception if webp support isn't present (it just needs a webp file). Mine is https://www.gstatic.com/webp/gallery/4.sm.webp

Magick::Image::read('./spec/fixtures/uploaders/avatar.webp').first.class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.