Usage: SpriteSheetPacker [options] source destination
Options | Description |
---|---|
-h, --help | Displays this help. |
-v, --version | Displays version information. |
-f, --format | Format for export sprite sheet data. Default is cocos2d. |
--texture-border | Border of the sprite sheet, value adds transparent pixels around the borders of the sprite sheet. Default value is 0. |
--sprite-border | Sprite border is the space between sprites. Value adds transparent pixels between sprites to avoid artifacts from neighbor sprites. The transparent pixels are not added to the sprites, default is 2. |
--trim | Allowed values: 1 to 255, default is 1. Pixels with an alpha value below this value will be considered transparent when trimming the sprite. Very useful for sprites with nearly invisible alpha pixels at the borders. |
--powerOf2 | Forces the texture to have power of 2 size (32, 64, 128..). Default is disable. |
--max-size | Sets the maximum size for the texture, default is 8192. |
--scale | Scales all images before creating the sheet. E.g. use 0.5 for half size, default is 0.5. |
Arguments | Description |
---|---|
source | Source folder with sprites for packing. |
destination | Destination folder where saving the sprite sheet. |
$ SpriteSheetPacker /alekseymakaseev/Character /alekseymakaseev/testResources --trim 2 --scale 0.5