Open BorisKourt opened 10 years ago
Excellent idea!
I've pitched the idea of WebP support for collage, the image transformation library that this leans on. You can see the discussion here: https://github.com/karls/collage/issues/1
Basically, it boils down to distribution of Google's webp binaries. If you bundle them yourself, then writing some asset transformation middleware for Optimus should be definitely doable.
I'll be happy to help out with pointers if this is something you would like to tackle. :-)
I am relatively new to Clojure but would like to try my hand at creating this. Any pointers that you can provide will be invaluable for me.
How should I get started with this? So far I have been using the webp utils provided by google manually from the terminal. Should I look at the SASS implementation for Optimus?
And thanks for your quick reply!
A few pointers:
Best of luck :-) Feel free to ask anything else.
I have been using Optimus with Stasis and am now trying to implement this:
(As per the second last listing here: http://dev.opera.com/articles/responsive-images/ )
Here is my initial code, not yet tested.
This should generate something close to the above. But my main question is: Is there a way to hook in a .webp converter into
transform-images
and what should I pass intotransform-images
in order to have the naming convention and range of sizes above?If including .webp is nontrivial at this point, then just the last part of the question applies.
Thank you for making Optimus and Stasis, it has made making static sites fun again!