gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > 32*32 Tiles

#88959 - lucbernard - Thu Jun 22, 2006 2:44 pm

Hello,

I was wondering if anyone here would know a program that allows to convert any image into many 32*32 pixel images?

I am asking this because it is really hard to make backgrounds tile by tile, and it would help alot more if that kind of program existed :)

Anyway thanks for your help.

Btw if you are interested here are the graphics to the game so far (don't worry about the cell phone size they are just mock ups)

[Images not permitted - Click here to view it] [Images not permitted - Click here to view it]

#89100 - tepples - Fri Jun 23, 2006 3:03 am

If you know how to program with the Allegro library, it would be dead simple for you to write such a program yourself. It's just a load_bitmap, a couple nested for loops, and a save_bitmap.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#92383 - nukomod - Thu Jul 13, 2006 8:02 am

Hi - Do you still need this doing? If so is there a specific file format you want as an output? Would a 24bit bitmap be ok? If so I don't mind knocking something together quickly for you ;)

#122623 - sirpoonga - Tue Mar 20, 2007 9:24 pm

If you need to convert graphics outside of programming I use imagemagick
http://www.imagemagick.org/Usage/

#122629 - sgeos - Tue Mar 20, 2007 9:42 pm

You can use the gd library if you want to throw a tool together.

-Brendan

#122649 - dantheman - Tue Mar 20, 2007 11:40 pm

There's exactly a program like the one you want by a user named Windy from ZFGC. As he no longer has links in his signature, I've uploaded the tool for him. It's called TileSet Optimizer 2.1 and it can do a number of things to tilesets, though I'll just give you instructions for splitting/unsplitting a tileset.

First download it from http://danthemanms.googlepages.com/TileSet_Optimizer2.1.zip and extract it, launching the program. Enter the Options page and set the following values: width 32, height 32, input border 0, output border 1 (or whatever you want). Change the background color to the color you want the lines to be (hot pink is usually used). Then check the box for "already optimized" or else it will remove duplicate tiles by default. Exit the Options, load the image (must be BMP or PNG), and click Commands - Process.

The other features of the software can be found in the Readme file.

Prior to releasing this, he also made a separate program that does nothing but splitting (no optimization tools included) called TileSplit. It might be easier to use if all you want is simple splitting and unsplitting, though it only accepts bitmap files, not PNG or GIF or anything. I've uploaded it to http://danthemanms.googlepages.com/Tile_Split.zip

There are two versions in there, one of which does not require some OCX file I think, but in that version you must type in the path of your image file manually rather than browsing to it through a dialog box.

#122723 - gauauu - Wed Mar 21, 2007 3:19 pm

Mappy has a function for "convert big picture to map". This might do what you want.