gratipay / gratipay-everywhere

The official Gratipay extension for the chrome browser, we enable Gratipay tipping icons on many of your favorite sites.
15 stars 11 forks source link

Autogenerate all required icons from single svg #21

Open patcon opened 10 years ago

patcon commented 10 years ago

https://github.com/dbushell/grunt-svg2png https://github.com/filamentgroup/grunticon https://github.com/drdk/grunt-dr-svg-sprites

rummik commented 10 years ago

Could just use the SVG directly. Chrome and Firefox support them. PNGs may be necessary for extension icons though

patcon commented 10 years ago

Yes, I think if we support cross platform, we can't have anything but base64 images in css (chrome is the special snowflake that allows web_accessible_resources), so these icons will only be used as browser icons (PNG only), and for autogenerating base64 images (#20) :)

rummik commented 10 years ago

Shouldn't need to base64 the SVG. I haven't checked FireFox though, but I know it works in Chrome

rummik commented 10 years ago

Seems to work fine in FireFox