Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 7, 2012, 21:15   #1
Antoine
Ironband/Quickband Maintainer
 
Join Date: Nov 2007
Posts: 780
Antoine is on a distinguished road
tile clipper

hey there,

can anyone recommend a tool for cutting a big tileset file into many little individual image files?

thanks
a.
__________________
Ironband - http://angband.oook.cz/ironband/
Antoine is offline   Reply With Quote
Old June 7, 2012, 21:24   #2
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 4,890
Derakon is on a distinguished road
ImageMagick provides a commandline tool that can programmatically crop out regions from files. For example, to make a 32x32 crop with upper-left corner at (128, 32) you'd do:
Code:
convert -crop 32x32+128+32 tileset.png outputtile.png
If the tiles are all the same size, you could easily cut them out from the tilesheet using two nested for loops.
Derakon is offline   Reply With Quote
Old June 7, 2012, 21:35   #3
Antoine
Ironband/Quickband Maintainer
 
Join Date: Nov 2007
Posts: 780
Antoine is on a distinguished road
Quote:
Originally Posted by Derakon View Post
ImageMagick provides a commandline tool that can programmatically crop out regions from files. For example, to make a 32x32 crop with upper-left corner at (128, 32) you'd do:
Code:
convert -crop 32x32+128+32 tileset.png outputtile.png
If the tiles are all the same size, you could easily cut them out from the tilesheet using two nested for loops.
perfect. does it do nice scaling as well?
__________________
Ironband - http://angband.oook.cz/ironband/
Antoine is offline   Reply With Quote
Old June 7, 2012, 21:58   #4
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 4,890
Derakon is on a distinguished road
Code:
convert -crop 64x64+256+128 -resize 50% tilesheet.png outputtile.png


More generally, there's a list of commandline options here, and there's plenty of tutorials for common operations, readily-findable on Google.
Derakon is offline   Reply With Quote
Old June 8, 2012, 01:59   #5
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,774
Donated: $8
buzzkill is on a distinguished road
FastStone Photo Resizer handles batches and does all kinds of stuff.
Also GlueSprites is a tiny GUI tile sheet chopper/reassembler.
__________________
www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
My banding life on Buzzkill's ladder.
buzzkill is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tile lighting Shockbolt Development 2 October 9, 2011 20:20
Tile painters: request for a new tile takkaria Development 8 June 17, 2011 12:01
r1494 tile issue Zikke Development 2 July 13, 2009 00:21
Tile issues in 3.1.0 beta amoeba801 Vanilla 4 April 25, 2009 20:48
Granite tile display in Vista gunduzs Vanilla 1 May 16, 2008 08:26


All times are GMT +1. The time now is 08:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.