[dist] shrink png asset size with optipng, scripts to generate assets (#2573)

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: #2573
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: crueter <crueter@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-09-26 03:53:54 +02:00 committed by crueter
parent fd21774aae
commit 1d83ba733c
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
315 changed files with 19 additions and 2 deletions

View file

@ -69,6 +69,18 @@ cmake --build /tmp/ramdisk -- -j32
sudo umount /tmp/ramdisk
```
# Assets and large files
A general rule of thumb, before uploading files:
- PNG files: Use [optipng](https://web.archive.org/web/20240325055059/https://optipng.sourceforge.net/).
- SVG files: Use [svgo](https://github.com/svg/svgo).
May not be used but worth mentioning nonethless:
- OGG files: Use [OptiVorbis](https://github.com/OptiVorbis/OptiVorbis).
- Video files: Use ffmpeg, preferably re-encode as AV1.
# Debugging
## Debugging (host code)
Ignoring SIGSEGV when debugging in host:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After