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

Calling svgo #32

Closed oschrenk closed 9 years ago

oschrenk commented 9 years ago

The documentation mentions compatibility with svgo. But iconizr --help just offers

--scour <string>           Absolute path to scour script for cleaning SVG files (see http://www.codedread.com/scour)

How do I use svgo?

jkphl commented 9 years ago

Hi @oschrenk,

iconizr checks for the availability of an svgo binary on your system (by calling which svgo — please note that this might only work on Linux / OS X platforms). A regular SVGO installation should register this binary on your system. iconizr will automatically try to use SVGO in case you didn't specify a --scour option for your command.

By the way: The PHP version of iconizr is totally outdated (and I'm not decided if I'll ever work on it again). As soon as you install SVGO, which is a Node.js module, you should definitely consider switching to the Node.js iconizr module, which has a lot more features and is still kinda maintained (there's a new generation available in the dev branch that I'm trying to finish for quite some time now).

Good luck & cheers, Joschi