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 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 <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.1.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.1-py2.7.egg (3.0 kB view details)

Uploaded Egg

File details

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

File metadata

File hashes

Hashes for css_image_concat-1.1.tar.gz
Algorithm Hash digest
SHA256 cac6bcd1adf524bb33c789eb15fe3123b8c5ee91918b4f17a281cea625f0f9e5
MD5 77493099fe77143824df61618de40508
BLAKE2b-256 3197a08a4180108ddbe6240d02c53cfa3d495864148d1d1399724b3da8e2d380

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for css_image_concat-1.1-py2.7.egg
Algorithm Hash digest
SHA256 75698136dac45daa21dccd974c27d857774acf5ef5742804f357d468aab50535
MD5 d061ac0ee56b7373640d45f1bb71fbc0
BLAKE2b-256 ccdcdc2c3928a1b02ede9242d4de59029549a2851076eb33e3fa2a6004ec84d8

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