This commit is contained in:
2025-02-11 02:58:46 -06:00
parent 891606c853
commit df097c6533
2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
# KAvaT
## The <u>K</u>nowledge Adventure Worlds <u>Ava</u>tar <u>T</u>ool
...or KAvaT, for short. (like "caveat")
<br>
*K*nowledge Adventure Worlds *Ava*tar *T*ool
**This is a program that automates the process of converting images into hologram textures.**
It automatically handles scaling and properly formatting your image to get exactly the right quality you want. It even splices large textures (>256px in any direction) so they will appear the highest quality possible within the Worlds client, no additional tweaking necessary.
Simply put your frames into the executable and it will do the rest. <u>Make sure you have COMPIMG.EXE in the same folder (all lowercase).</u> This tool will <u>**overwrite**</u> any files that get in the way so you should set aside a dedicated folder for your work to take place.
Linux only at this time. Future versions will have QOL improvements and potentially a GUI.

6
main.c
View File

@@ -232,9 +232,9 @@ int main(const int argc, char *argv[]) {
MagickWriteImage(chunk, framename);
char command[57 + 12*piecesX*piecesY]; // retard hack :)))))) because magickwand can't just do what i fucking ask
sprintf(command, "mogrify -depth 8 -define bmp:format=bmp3 -type palette %s", framename);
if (system(command)) { printf("ERROR trying to run mogrify! Is imagemagick installed to your PATH?\n"); return 0; }
//char command[57 + 12*piecesX*piecesY]; // retard hack :)))))) because magickwand can't just do what i fucking ask
//sprintf(command, "mogrify -depth 8 -define bmp:format=bmp3 -type palette %s", framename);
//if (system(command)) { printf("ERROR trying to run mogrify! Is imagemagick installed to your PATH?\n"); return 0; }
iw++;
}