Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.01 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.01 KB

From image to plain css converter

Converts svg/png files to inline dataURLs with naming style as b-ico-%filename%

List of supported mime types: gif,png,svg

It creates css files with images represented as dataURL and can be controlled by several available modes:

  1. "make-combo mode" includes either svg or binary images(png/gif) into one file
  2. "default mode" converts images into two separated css files: one with svg images only and another with binary images.

Repo

https://github.com/ikondrat/img2css

Usage

ruby make.rb --source-dir=path [OPTIONS..]

OPTIONS:
--make-combo             Append dataURL from png to css with svg images if required svg file doesn't exist
--verbose                Show detailed output
--except-oldie           Don't append '-filter' degradation styles for old IE
--result-dir             Folder where generated files will be stored
--result-name            Base name for generated files
--css-name               Base name for generated css rule
--help                   HELP