https://github.com/doist/css_image_concat
A script that can concat images into one image and create a CSS file.
https://github.com/doist/css_image_concat
Last synced: over 1 year ago
JSON representation
A script that can concat images into one image and create a CSS file.
- Host: GitHub
- URL: https://github.com/doist/css_image_concat
- Owner: Doist
- Created: 2012-02-20T20:33:33.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:49:55.000Z (over 2 years ago)
- Last Synced: 2025-03-28T10:21:43.343Z (over 1 year ago)
- Language: Python
- Homepage: http://amix.dk/blog/post/19682#css-image-concat
- Size: 8.79 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
css_image_concat
===========================================
A script that can concat images into one image and create a CSS file.
Super useful when you want decrase issuing a lot of HTTP requests
due to a lot of small images (like icons).
To install it do following::
sudo pip install css_image_concat
This script takes three inputs::
image_dir: A directory of images
out_img: An output path to the concated image
out_css: An output path to a CSS file
Usage is::
css_image_concat
It will then process all the images of `image_dir` and create one
image and one CSS file with classes. The CSS classes have following name::
cmp_
This script requires ImageMagick ( http://imagemagick.org/ )
More info at http://amix.dk/blog/post/19682#css-image-concat
Copyright by Amir Salihefendic ( http://amix.dk/ )
License MIT