Initial commit

This commit is contained in:
2024-01-21 14:56:37 -03:00
commit f704d417af
2 changed files with 84 additions and 0 deletions

15
README.md Normal file
View File

@@ -0,0 +1,15 @@
# emoji_gen
Script for generating `pack.json` file for emoji packs in pleroma/akkoma
## Usage
If you have LLVM's D compiler (`ldc2`) installed, you can run the script directly:
```
./emoji_gen.d <images directory>
```
Or if you have `dmd`:
```
rdmd -run emoji_gen.d <images directory>
```
It iterates through all image files inside the directory, not recursively. Check `permittedExtensions` variable for file extensions to include, default value: `jpg jpeg gif png`. At the end, it generates `pack.json` in the same directory as the images.