What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Can Photoshop CS5 remove padding from a tileset/tilesheet?


vertigoelectric

New Member
Messages
3
Likes
0
I'm a game designer, and I work with a lot of tiles extracted from existing tilesets I find on the web. I used to crop and save each desired tile one at a time until I discovered that I could split the sheet into slices and save them all at once, saving tons of time.

I ran into a problem, though. Some tilesets are padded, meaning that there is space between each tile on the tileset image. Is there a way for photoshop to either remove the padding and "collapse" the tiles together into an unpadded tileset, or can I somehow configure the slices to accommodate for the padding?
 
could you post an image?

I almost did, and then I thought "Nah, they'll know what I'm talking about."

Okay, take a look at this tileset:
snap444_(2012-01-18)(09.27.51).png

As you can see, there are a few pixels of space between each tile. This is padding. Because of this, I can't simply slice the image and export. The padding would have to be removed first because it offsets each tile from the grid in photoshop.
 
I hope I understand,
first you use a slice tool, then in the save for web panell choose the slice you want to save. At the end there is a opsion you can save just a slice selected or all slice.
Use a alt key to choose multiple slices.
I hope I helped you.
2012-01-21_0011.png
 
Last edited:
Thanks, but that doesn't solve the problem. I don't want to have to slice each tile one by one. Please understand that some tilesets have hundreds of tiles on them.

What I do is I make the whole image into one slice and then right-click and choose "Divide Slice..." to divide it so that each tile is its own slice. The problem though is that since there is padding between each tile on the image itself, the slices don't line up with the tiles.
 

Back
Top