Mobile app version of vmapp.org
Login or Join
Ogunnowo487

: 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

@Ogunnowo487

Posted in: #Images #Optimization

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.

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Ogunnowo487

4 Comments

Sorted by latest first Latest Oldest Best

 

@Moriarity557

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.

10% popularity Vote Up Vote Down


 

@Yeniel560

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.

10% popularity Vote Up Vote Down


 

@Karen161

Well, I use a GIMP script for taking care of that.

10% popularity Vote Up Vote Down


 

@Pope3001725

FYI, they're called sprites and there's quite a few free ones available online.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme