Show HN: Gif2sprite – Convert animated GIFs to image sprites and CSS
gif2sprite.com
gif2sprite.com
The gif integration would be what appears to separate this from little libs like Motio[0].
_Question for HN_: is there a reliable cross-browser way to use the sprited background-image approach with responsive elements?
I'm thinking specifically about responsive images, where you want to fill a certain amount of space.
Because of IE's lagging support for various background-... css properties, my impression was that unless you can say goodbye to IE8 it's not an option (maybe not even for non-sprited bgimage, but actually I think there's a DX transform that can stand in for css background 'cover').
But in fact I don't believe I've ever actually seen a demo of a responsive, animated, sprited background-image! I might have just missed it. I've just been preloading images and animating the src property.
----
Ran into an issue with this gif though: http://i.imgur.com/5NGvn30.gif - top of the page says "Warning: chmod(): No such file or directory in /var/www/gif2sprite.com/public_html/index.php on line 36".
Thanks for the nice words, I hope someone finds it useful. If people find it of use, I might devote more time to making it a little nicer and more feature-packed besides the JavaScript library I'll be making for it this weekend.
Under half an hour. Less than 30 minutes. :)
Love the little project BTW.
I was thinking of extracting the gif parsing code from this project: https://github.com/shachaf/jsgif
Then I looked at the code. I've never seen such callback hell in js without there being a server... so I abandoned that idea and was eventually planning on writing my own.
I just integrated it with a super simple SpriteSpin (http://spritespin.ginie.eu/)