最近想用TexturePack直接在命令行导出Atlas,研究下命令行的参数记录下
Usage: TexturePacker [options] [<*.png|gif|tif|jpg|swf|...>] [<imagefolder>] [<*.tps>*]
You can specify one or more .png or .tps files or directories for processing.
<folder> Recursively adds all known files in the sprite sheet
<*.tps> *.tps file created with TexturePackerPro (requires pro license)
Additional set options override settings in the *.tps file
<*.swf> Flash requires pro license
<images> Image formats, supported:
bmp Bitmap
dds DirectDraw Surface
gif Graphics Interchange Format
ico Icon (Windows)
jpeg Joint Photographic Experts Group
jpg Joint Photographic Experts Group
ktx Khronos Texture
pbm Portable Bitmap
pgm Portable Gray Map
pkm PKM file format (etc1/2)
png Portable Network Graphics
ppm Netpbm color image format
psd Photoshop image format
pvr PowerVR image format
pvr.ccz PowerVR image format (zlib)
pvr.gz PowerVR image format (gz)
pvrtc PowerVR image format
svg Scalable Vector Graphics
svgz Scalable Vector Graphics
swf Flash
tga Targa image format
tif Tagged Image Format
tiff Tagged Image Format
webp WebP format
xbm X Bitmap
xpm X Pixmap
Options:
--help Display help text
--version Print version information
--gui Launch in with graphical user interface
Output:
--sheet <filename> Name of the sheet to write, see texture-format for formats available
--texture-format <id> Sets the format for the textures.
The format type is automatically derived from the sheet's file name
if possible.
Available formats:
png PNG (32bit)
png8 PNG (8bit indexed)
pvr3 PowerVR Texture Format, PVR Version 3
pvr3gz PowerVR Texture Format, PVR Version 3, compressed with gzip
pvr3ccz PowerVR Texture Format, PVR Version 3, compressed with zlib, cocos2d header
jpg JPG image format, lossy compression, no transparency
bmp 24 bit BMP
tga Targa Image Format
tiff Tagged Image File Format
pkm PKM image format, ETC1 compression
webp WebP lossless / lossy format
atf Adobe Texture Format
ktx Khronos Texture
dds DirectDraw Surface
pvr2 PowerVR Texture Format, PVR Version 2, deprecated
pvr2gz PowerVR Texture Format, PVR Version 2, compressed with gzip, deprecated
pvr2ccz PowerVR Texture Format, PVR Version 2, compressed with zlib, cocos2d header, deprecated
--format <format> Format to write, default is cocos2d
Available formats:
2dtoolkit 2D Toolkit exporter
amethyst Amethyst: Data-driven game engine written in Rust
agk Format for AppGameKit
batterytech BatteryTech Exporter
bhive Format for BHive
black Exporter for Blacksmith 2D Engine
caat Exporter for CAAT - the Canvas Advanced Animation Toolkit
cegui Format for CEGUI / OGRE
cocos2d plist format version 3 for cocos2d
cocos2d-v2 old plist format version 2 for cocos2d (deprecated)
cocos2d-x plist format version 3 for cocos2d-x with polygon packing
corona-imagesheet Exporter for Corona(TM) SDK using new image sheet format.