No files yet.
A sprite sheet fits every image into the same square, in columns that start at 4, tiles that start at 128 pixels, and a gap that starts at 0. Each source is contained, not cropped, so a wide frame gets bars inside its tile. The ZIP holds the PNG, a JSON list of names and positions, and a CSS file that sets each sprite as a background position. Class names are sprite-1 onward. The JSON records x, y, width and height.
128 pixels is a real display size for an icon and a coarse size for a detailed character. The sheet does not trim transparent margins and does not pack tightly the way a texture atlas would. Empty gap, if you add one, is part of the pitch the CSS uses, so the coordinates stay correct. Order is the order you add the files. A contact sheet looks similar and instead prints file names on a white page, with no CSS.
Output is a PNG sheet inside the ZIP, so transparency in the icons can survive. JPG would ruin that. If the icons were different sizes, they share one tile and the smaller ones float inside it. Normalize them first if they should fill the square.
Four square PNGs. Columns 4, tile 128, gap 0.
A ZIP with a 512 by 128 PNG, sprites.json placing sprite-1 at 0,0 and sprite-2 at 128,0, and CSS classes of 128 by 128 with matching background positions. A wide icon would be letterboxed inside its 128-pixel cell.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
The sheet PNG, sprites.css and sprites.json. JSON lists name, id, x, y, width and height.
No. They are fitted inside the tile. A wide image keeps bars inside the cell.
No. The CSS and JSON use the tile plus the gap as the pitch.
It prints file names under the tiles and does not write CSS or JSON.
In the PNG sheet, yes. Do not re-export the sheet as JPG.