Skip to content

A haxe neko script that compresses PNGs to ASTCs textures because i'm stupid

License

Notifications You must be signed in to change notification settings

KarimAkra/astc-compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astc-compressor

A Haxe/Neko runner for compressing image files as ASTC textures using ASTC-Encoder.

Installation

You can install it through Haxelib

haxelib install astc-compressor

Or through Git, if you want the latest updates

haxelib git astc-compressor https://github.com/KarimAkra/astc-compressor.git

Commands

compress

haxelib run astc-compressor compress -i ./textures -blocksize 6x6 -quality medium -colorprofile cl -o ./output

Compresses 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 .astc files.
  • -excludes <file>: (Optional) File with list of input paths to skip.
  • -clean: (Optional) Clean output directory before compressing.

rebuild

haxelib run astc-compressor rebuild

Rebuilds the Haxe runner (useful if native binaries or dependencies change).


help

haxelib run astc-compressor help

Displays help text with command usage, options, and examples.

Licensing

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.

About

A haxe neko script that compresses PNGs to ASTCs textures because i'm stupid

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages