Skip to main content

A script that can concat images into one image and create a CSS file

Project description

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 easy_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 <image_dir> <out_img> <out_css>

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_<filename>

This script requires ImageMagick ( http://imagemagick.org/ )

Copyright: by Amir Salihefendic ( http://amix.dk/ ) License: MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

css_image_concat-1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

css_image_concat-1.0-py2.7.egg (3.0 kB view details)

Uploaded Egg

File details

Details for the file css_image_concat-1.0.tar.gz.

File metadata

File hashes

Hashes for css_image_concat-1.0.tar.gz
Algorithm Hash digest
SHA256 cd5ff82e8cde41905f08579e0a9fda20177fcfd8f345104b88a79763f60d8888
MD5 ae0c0dfea357231350a989644782d92c
BLAKE2b-256 d2aeb4edba785e0cc117a6dc589b1efd79a70f938523f0109b15c67a130a47e0

See more details on using hashes here.

File details

Details for the file css_image_concat-1.0-py2.7.egg.

File metadata

File hashes

Hashes for css_image_concat-1.0-py2.7.egg
Algorithm Hash digest
SHA256 c846c01e35fcda15bb21c280a5a868d58bf97cd383cb7b14eaa838aaa40b9947
MD5 e3e4621196c5c43dcbf0b85f7d975bcf
BLAKE2b-256 470ba5524c3a4f5928e4101d0f077da07f0bdb5179c565d37eb4e08e7d5dc111

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page