jkphl / iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG & PNG, single icons and / or CSS sprites) with support for image optimization and Sass output. Created by Joschi Kuphal (@jkphl), licensed under the terms of the MIT license
http://iconizr.com
MIT License
485 stars 36 forks source link

Support for generic image sprites and not just SVG #22

Open koriolis opened 10 years ago

koriolis commented 10 years ago

At this time, if you're using SASS, Compass is the de facto solution for generated sprite images. There's plenty of other solutions out there but none that are so easy to use or that actually simplifies your workflow. Unfortunately, Compass is slow. I mean.... REALLY Slow. The solution for SASS is to use libsass which, obviously, doesn't support Compass.

Iconizr seems the perfect solution. It integrates nicely into a grunt workflow, it does the heavy lifting, creates the SASS classes automatically, and has a ton of nice features out of the box. Unfortunately from what I've seen it's tailored to use SVG source "images", so if we wanted to use PNG source images instead, to generate a generic sprite image (as opposed to icons) we couldn't.

Do you think it will be possible for iconizr to support PNG icons as source images for the sprite?

jkphl commented 10 years ago

Hi @koriolis,

thanks for your very positive feedback about iconizr! :)

Well, in fact, up until now iconizr exclusively targets an SVG-to-icon workflow, and this is (and will remain) it's main purpose. What you need seems to be a "simple" spriting tool, and as far as I know, there should be some of them out there (even for Grunt). Please correct me if I'm wrong.

If you could provide me with some more details, why you think iconizr would be the best basis for aiming at your task, then maybe I could consider extending it appropriately. However, please don't expect me to become active before end of May, as I'm on holidays right now ...

Thanks & cheers, Joschi