Skip to content

TobseF/Playnite-Library-Minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ๐Ÿ—œ Playnite Library Minifier

Kotlin Java Gradle

๐Ÿ—œ 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

โญ Features

โญ Save up to 90% space
โญ Resizing images
โญ Converting .ico files to png
โญ Removing duplicates files
โญ Update static html files

๐Ÿ›  Config

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.

๐Ÿš€ Run

  1. At first install the Playnite html exporter plugin.
  2. In the config check "Copy images to output folder".
  3. Make an export "Extensions > HTML Exporter > Export"
  4. Run the script by gradle
gradle run

About

๐Ÿ—œ Minifies a Playnite game database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages