9
\$\begingroup\$

I was wondering how I can get my 110+ .png map tiles conveniently into a 1:1 pixel ratio size map .png. I've been scrolling through Google and forums for the free ware game that I am modding, but the app I'm using recognizes only .png files, and I want more than 1% of the map. If you guys know of a program I would be very appreciative.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ possible duplicate of Is there a tool to automatically pack individual textures into one big png? \$\endgroup\$ Commented Dec 19, 2011 at 9:22
  • 2
    \$\begingroup\$ I'd probably roll my own, as that doesn't sound too complicated, and I could add any features I wanted. stb_image, for instance, is a free library that supports both loading and saving of pngs easily. \$\endgroup\$ Commented Dec 19, 2011 at 10:39

2 Answers 2

5
\$\begingroup\$

Such as this (free license for bloggers and framework developers) or this (completely free but a bit less flexible)?

\$\endgroup\$
3
  • 3
    \$\begingroup\$ D:< I spend 2 whole days looking for something and you just whip it out minutes after I ask? Don't get me wrong I am very grateful, but wow! \$\endgroup\$ Commented Dec 19, 2011 at 4:48
  • 2
    \$\begingroup\$ The second will be more useful since I can edit the length and width with text. Thanks, you saved me time, sleep and headaches ;). \$\endgroup\$ Commented Dec 19, 2011 at 5:04
  • 2
    \$\begingroup\$ No problem, glad it helped :) Finding stuff online is usually easy as long as you know what to search for. In this case I knew immediately that I needed some sort of texture packer or spritesheet maker so... \$\endgroup\$ Commented Dec 19, 2011 at 6:05
6
\$\begingroup\$

ImageMagick with it's convert -append can also be used for this. Though, it only does appending into one direction, but if your tiles are named ascending (f.e. tile001.png) it can still be used in a loop:

convert tile00*.png +append line1.png convert tile01*.png +append line2.png convert line*.png -append wholeImage.png 

As pointed out by bummzack, montage will work also good.

montage tile*.png -geometry +0+0 wholeImage.png 
\$\endgroup\$
4
  • 4
    \$\begingroup\$ You could also use ImageMagicks montage command. As described here. \$\endgroup\$ Commented Dec 19, 2011 at 9:37
  • 1
    \$\begingroup\$ @bummzack: Thanks, I'm not sure how I missed that. As an informational note only, that site has a very poor rating, I'm not sure why. \$\endgroup\$ Commented Dec 19, 2011 at 9:41
  • 3
    \$\begingroup\$ never heard of that WOT reputation thing. The procedure outlined in the blog post works fine though. I have used it myself in multiple occasions. \$\endgroup\$ Commented Dec 19, 2011 at 9:43
  • \$\begingroup\$ +1 for using montage. I've used that many times to make sprites from individual frames. Very handy. \$\endgroup\$ Commented Dec 19, 2011 at 15:43

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.