jorgebastida/glue — pull request #138 by lzubiaur (2014-02-25 15:30:36+00:00)
Title: Add cocos2d offset format

In cocos2d images can be cropped in the sprites sheet but they keep their original size when using them in cocos2d. This feature is useful for animations.

When cropped sprite’s need to be offset to ensure their texture is drawn in correct alignment to their original size. This PR implement offset for the cocos2d format.

PS: An option might be added to glue to actually crop the image or keep the original size.
Texturepacker implements the following options:
--trim-mode=None (images are not cropped at all)
--trim-mode=Trim (transparency is removed but original size is kept)
--trim-mode=Crop (sprite appears in the sheet as if it never had any transparency)