Skip to content

ikondrat/img2css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Script for convert images to dataURLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages