Skip to content
Script to turn a folder full of images into a single PNG, with CSS file to display them
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Makefile
README
control
iconmapper

README

      __                                                               
     |__| ____  ____   ____   _____ _____  ______ ______   ___________ 
     |  |/ ___\/  _ \ /    \ /     \\__  \ \____ \\____ \_/ __ \_  __ \
     |  \  \__(  <_> )   |  \  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 <shish@civicboom.com>


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.
Something went wrong with that request. Please try again.