Giter Site home page Giter Site logo

tile-cutter's Introduction

Tile-Cutter (by Jeff LaMarche)

Tile Cutter is an open source under the non-viral MIT license.
Tile Cutter will take a large image and split it up into smaller tiles. I created this for use in a CATiledLayer-backed view for an iPad application, but it could be used for a number of other purposes.

This Fork (by Stepan Generalov)

In this fork of Tile Cutter there was added some things:

  1. Plist file, that have info about tiles position and source image size.
  2. Skipping of absolutely transparent tiles
  3. Command Line Tool
  4. Rigid Tile Size (can be useful if you need fixed tile size, even if image don't fit)

There's some minor issues in this fork, that i probably will not fix, cause everything is working fine for me now:

  1. You can't choose other than PNG file type in commandLine tool.
  2. You can't set suffix in GUI.
  3. There's no progressBar in commandLine tool. Here's a link, that maybe can help you with implementing non-duplicating progress bar: http://en.wikipedia.org/wiki/ANSI_escape_code
  4. rigidTilesSize option is available only in commandLine tool. (It allows you to have all tiles with equal size with black pixels that is out of image area)

If you're using Tile-Cutter and experiencing some issues - feel free to open new Issues or Pull Requests in this Repo.

tile-cutter's People

Contributors

psineur avatar

Stargazers

Lings He avatar Gyetván András avatar  avatar Dave Wise avatar Emanuele Sabetta avatar Sam Yelles avatar Cook avatar  avatar Vratislav Kalenda avatar Ted Bradley avatar Dmitry Seredinov avatar

Watchers

ningxu avatar  avatar

tile-cutter's Issues

New option: --roundTileSizeToPOT

Без --rigidTIleSize это позволит сохранять в pvr.ccz автоматически - без явного указания неделимого размера.

Build Error

With XCode 4.2, it bailed on -fobjc-nonfragile-abi2

Removed it, and then it compiled fine. This term is un-googleable to me, so I have no idea what it does.

Command Line Tool crashes in

Original message by Davewise from cocos2d-iphone.org forum:

I think something is going on with the latest version of tileCutter and png files. I grabbed the latest cocos2d-iphone-extensions 0.2 and opened up the cocos2d-extensions-ios.xcodeproj. I looked in the CCBigImageTest folder and noticed that the png files pointed to in the xcodeproj are replaced with jpg files. So I saved them as png files and changed prepareTiles.sh so that it would point to the png files. tileCutter will crash if you do this. Note that it didn't crash in the past when I tried this. You can try this yourself to see the results. Here is the output from my terminal:

./prepareTiles.sh
Preparing SD TilestileCutter(12199,0x100681000) malloc: *** error for object 0x102106be8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
./prepareTiles.sh: line 33: 12199 Abort trap: 6 ./tileCutter --rigidTilesSize --tileWidth 256 --tileHeight 256 --inputFile bigImage.png --outputFile tiles/bigImage
Preparing HD Tiles
tileCutter(12202,0x100681000) malloc: *** error for object 0x101012208: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
./prepareTiles.sh: line 37: 12202 Abort trap: 6 ./tileCutter --rigidTilesSize --tileWidth 512 --tileHeight 512 --inputFile bigImage-hd.png --outputFile tiles/bigImage --outputSuffix -hd
rm: tiles/bigImage-hd.plist: No such file or directory
Converting Tiles to pvr.ccz
Writing sprite sheet to bigImage_0_0.pvr.ccz
Writing data for cocos2d to out.plist
Resulting sprite sheet is 260x260.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.