Just run it from within the directory containing images for conversion and it will automatically produce their *.ali variants:
java -jar AlbiteImageConverter-0.9.1
Notes:
- Only PNG images will be converted, and all other files will be skipped
- It works only with transparent PNGs, i.e. it copies the Alpha channel to the output grayscale *.ali image. In other words, if your image is opaque, it will produce a completely white image. On the other hand, it will ignore any info on the RGB channels.
Meaning | Type | Bytes |
---|---|---|
Magic number | Integer | 4 |
Image width | Short | 2 |
Image height | Short | 2 |
Image grayscale data | byte[] | width * height |