๐ Shrink your game lib to make it ready for an upload
A one file Kotlin script which shrinks a Playnite game library by resizing images and removing duplicated files. The script can also update paths in a Playnite html exporter export.
To resize the images it uses Image Magic.
๐ Sample Game Lib: games.tobse.eu
Before | After | |
---|---|---|
Size | 4.42 GB | 466 MB |
Files | 8875 | 8210 |
โญ Save up to 90% space
โญ Resizing images
โญ Converting .ico files to png
โญ Removing duplicates files
โญ Update static html files
Before launch, edit the variables in the script according your machine setup.
simulate
: For testing. If true, no files will be changed.gamesPath
: Your Playnite library game folder. Used to load the game data.outputPath
: Folder where it converts the images.imageMagicPath
: Path to the magick.exe.jpgImageQuality
: JPG image quality, 100 ist best.
- At first install the Playnite html exporter plugin.
- In the config check "Copy images to output folder".
- Make an export "Extensions > HTML Exporter > Export"
- Run the script by gradle
gradle run