How to convert an image to ASTC format? (ASTC or KTX file)

With TexturePacker's --convert-texture command line option you can easily convert a single image to a different format:

TexturePacker --convert-texture input.png --pixel-format ASTC_6x6 --texture-format ktx

The pixel format specifies the compression algorithm to use, the texture format describes the file container. The following formats are supported for ASTC compression:

Pixel formatBits per pixelDescription
ASTC_4x48.00Compressed with ASTC 4x4
ASTC_5x46.40Compressed with ASTC 5x4
ASTC_5x55.12Compressed with ASTC 5x5
ASTC_6x54.27Compressed with ASTC 6x5
ASTC_6x63.56Compressed with ASTC 6x6
ASTC_8x53.20Compressed with ASTC 8x5
ASTC_8x62.67Compressed with ASTC 8x6
ASTC_8x82.00Compressed with ASTC 8x8
ASTC_10x52.56Compressed with ASTC 10x5
ASTC_10x62.13Compressed with ASTC 10x6
ASTC_10x81.60Compressed with ASTC 10x8
ASTC_10x101.28Compressed with ASTC 10x10
ASTC_12x101.07Compressed with ASTC 12x10
ASTC_12x120.89Compressed with ASTC 12x12
Texture FormatDescription
astcASTC texture file. Direct container for ASTC compressed data.
ktxKhronos Texture. Standard container for OpenGL ES textures.
ktx2Khronos Texture (Version 2). Newer format with Basis Universal support.
zktxKhronos Texture (gzip compressed). KTX file compressed for smaller storage.
pvr3PowerVR Texture Format. Native format for iOS and PowerVR GPUs.
pvr3gzPowerVR Texture Format, compressed with gzip. Smaller on disk, decompressed at load time.
pvr3cczPowerVR Texture Format, compressed with zlib, cocos2d header.

The Image quality can be configured with --astc-quality <0-4>, default value is 2.
For other options (scaling, trimming transparency, ...) have a look at the Image conversion documentation.