Giter VIP home page Giter VIP logo

playnite-library-minifier's Introduction

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

playnite-library-minifier's People

Contributors

bluscream avatar tobsef avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

bluscream

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.