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.
\$\begingroup\$ \$\endgroup\$
2 - 1\$\begingroup\$ possible duplicate of Is there a tool to automatically pack individual textures into one big png? \$\endgroup\$bummzack– bummzack2011-12-19 09:22:16 +00:00Commented 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\$Jari Komppa– Jari Komppa2011-12-19 10:39:01 +00:00Commented Dec 19, 2011 at 10:39
Add a comment |
2 Answers
\$\begingroup\$ \$\endgroup\$
3 Such as this (free license for bloggers and framework developers) or this (completely free but a bit less flexible)?
- 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\$Tyler– Tyler2011-12-19 04:48:15 +00:00Commented 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\$Tyler– Tyler2011-12-19 05:04:48 +00:00Commented 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\$David Gouveia– David Gouveia2011-12-19 06:05:25 +00:00Commented Dec 19, 2011 at 6:05
\$\begingroup\$ \$\endgroup\$
4 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 - 4\$\begingroup\$ You could also use ImageMagicks montage command. As described here. \$\endgroup\$bummzack– bummzack2011-12-19 09:37:41 +00:00Commented 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\$Bobby– Bobby2011-12-19 09:41:49 +00:00Commented 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\$bummzack– bummzack2011-12-19 09:43:44 +00:00Commented 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\$notlesh– notlesh2011-12-19 15:43:55 +00:00Commented Dec 19, 2011 at 15:43