Skip to content

Script to turn a folder full of images into a single PNG, with CSS file to display them

Notifications You must be signed in to change notification settings

civicboom/iconmapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

      __                                                               
     |__| ____  ____   ____   _____ _____  ______ ______   ___________ 
     |  |/ ___\/  _ \ /    \ /     \\__  \ \____ \\____ \_/ __ \_  __ \
     |  \  \__(  <_> )   |  \  Y Y  \/ __ \|  |_> >  |_> >  ___/|  | \/
     |__|\___  >____/|___|  /__|_|  (____  /   __/|   __/ \___  >__|   
             \/           \/      \/     \/|__|   |__|        \/       


A small python script to turn a folder full of images into a single .png with
accompanying .css to aid with display.


Quickstart:
  1. iconmapper -c icons.css -p icons.png \
     icons/globe_16.png icons/globe_32.png icons/cake_16.png
  2. upload icons.png and icons.css to your server
  3. <link rel="stylesheet" type="text/css" href="icons.css" />
  4. <span class="icon16 globe"><span>World View</span></span>


Original idea:
  Oran Looney
  http://oranlooney.com/make-css-icons-python-image-library/

Rewrite by:
  Shish on behalf of Civicboom <[email protected]>


This work is licensed under the Creative Commons Attribution 3.0 United 
States License. To view a copy of this license, visit 
http://creativecommons.org/licenses/by/3.0/us/ or send a letter to Creative
Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

About

Script to turn a folder full of images into a single PNG, with CSS file to display them

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages