: Software to combine multiple images Combining multiple images into a single image is a good way to improve performance by reducing the number of http requests. But how do most webmasters manage
Combining multiple images into a single image is a good way to improve performance by reducing the number of http requests. But how do most webmasters manage their combined images?
Is there any software available that makes combining images into a single image easier? It would be nice to throw the software a set of images and have it combine them and then report on the X,Y,width,height offsets within the image.
More posts by @Ogunnowo487
4 Comments
Sorted by latest first Latest Oldest Best
spritegen.website-performance.org/ http://csssprites.com/ csssprites.org/
You don't want to load all your images from sprites.
It can slow your site down if the page that is loaded doesn't actually use the images.
There is a clear balance of what needs to be on sprites and what doesn't.
What I recommend is:
Make sprites for images that appear on most pages.
Use a lazyload script to load other images when they are in focus.
ImageMagick is a great image processing tool that can do this. It's command line only so isn't the easiest to use for non-programmers. For stitching images together, use the montage command:
montage -geometry +4+4 *.png
This won't generate the CSS for you, but unless you have more than 30 images that shouldn't be a problem.
There are many online tools that can do the CSS too, with class names based on the filenames. This one is very good.
FYI, they're called sprites and there's quite a few free ones available online.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.