tile clipper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Antoine
    Ironband/Quickband Maintainer
    • Nov 2007
    • 1010

    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/
  • Derakon
    Prophet
    • Dec 2009
    • 9022

    #2
    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.

    Comment

    • Antoine
      Ironband/Quickband Maintainer
      • Nov 2007
      • 1010

      #3
      Originally posted by Derakon
      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/

      Comment

      • Derakon
        Prophet
        • Dec 2009
        • 9022

        #4
        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.

        Comment

        • buzzkill
          Prophet
          • May 2008
          • 2939

          #5
          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.

          Comment

          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎