A Haxe/Neko runner for compressing image files as ASTC textures using ASTC-Encoder.
You can install it through Haxelib
haxelib install astc-compressorOr through Git, if you want the latest updates
haxelib git astc-compressor https://github.com/KarimAkra/astc-compressor.githaxelib run astc-compressor compress -i ./textures -blocksize 6x6 -quality medium -colorprofile cl -o ./outputCompresses images in the specified file or directory using ASTC with the given settings.
Options:
-i <input>: Path to image file or folder.-blocksize <WxH>: Block size (e.g. 4x4, 6x6, 8x8).-quality <level>: Compression quality:fastest,fast,medium,thorough,exhaustive.-colorprofile <cl|cs|ch|cH>: ASTC color profile mode.-o <output>: (Optional) Output directory for.astcfiles.-excludes <file>: (Optional) File with list of input paths to skip.-clean: (Optional) Clean output directory before compressing.
haxelib run astc-compressor rebuildRebuilds the Haxe runner (useful if native binaries or dependencies change).
haxelib run astc-compressor helpDisplays help text with command usage, options, and examples.
astc-compressor is made available under the MIT License. See LICENSE for details.
This project includes prebuilt astcenc binaries from the ASTC Encoder project, which is licensed under the Apache License 2.0.
The binaries are included inside the plugins folder.
See plugins/LICENSE-ARM.txt for a copy of the ASTC Encoder license.