Playnite Forums
Image Cache Size Saver | Reduce your Playnite's Image cache size - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Extension Database (https://playnite.link/forum/forum-3.html)
+--- Forum: Generic Extensions (https://playnite.link/forum/forum-6.html)
+--- Thread: Image Cache Size Saver | Reduce your Playnite's Image cache size (/thread-372.html)



Image Cache Size Saver | Reduce your Playnite's Image cache size - darklinkpower - 08-20-2020

Image Cache Size Saver | Reduce your Playnite's Image cache size

[Image: P8hIwd7.png]
Feature requests and bug reports:
Create an issue on the theme GitHub repository after verifying it doesn't already exists.
Make sure to fill all the requested information when opening the issue.


I don't use the forums frequently so please use GitHub for requests and bug reports. You can join the Playnite discord where I am active if you have questions or need support

https://github.com/darklinkpower/PlayniteExtensionsCollection/issues

Description
                                                                                                                                                                             
This extension will save a considerable amount of space by processing the images in you Playnite's cache. This cache can use many GBs of space depending on your installation size, being the main culprit animated images that get automatically downloaded for your game's description. This extension will process all your images and only save their first frame to considerably reduce image sizes, and also process all other images in the cache. There won't be any difference to the user after using the extension's function.

Only images that have less size after being processed will overwrite your current images to provide the best savings in your cache and the list of processed images will be saved to not try to process them again when the extension is run afterwards.

The extension uses ImageMagick to do the image processing and it's required to download it in any location. ImageMagick can be downloaded here (See the "Windows Binary Release" section): https://imagemagick.org/script/download.php

Github Repository: https://github.com/darklinkpower/PlayniteScriptExtensions

Installation
                                                                                                                                                                             
Option A. Download from the Addons browser in Playnite.
Option B. Click here to start the install process

Usage
                                                                                                                                                                             
1. Open the extensions submenu and select the "Image Cache Size Saver - Process Images in Cache" function.
2. In the first time usage, you'll be asked to select the ImageMagick executable if you are not using the installed version. This is only required once since the location will be saved for subsequent uses.

After all the images have been processed you will be presented with the results.

Screenshots
                                                                                                                                                                             

Example of images in cache that take a lot of space:

[Image: QF0h0ru.png]

Results after the extension function has finished:

[Image: FCPBpj4.png]


RE: Image Cache Size Saver | Reduce your Playnite's Image cache size - darklinkpower - 10-13-2020

New version

v1.0.1
  • Reorganized extension functions in submenu.
  • Added Id property and Github link to extension manifest.



RE: Image Cache Size Saver | Reduce your Playnite's Image cache size - vannessqn - 10-19-2020

thank you!


RE: Image Cache Size Saver | Reduce your Playnite's Image cache size - darklinkpower - 10-19-2020

New Version

v1.0.2
  • Use 'CurrentExtensionDataPath' variable for saved extension data.
  • Added logging
  • Get image magick executable path via registry

Note: If you have used the extension before, I suggest moving the 'ImageCacheSizeSaverList.txt' file inside the 'ImageCacheSizeSaver' to the 'Image_Cache_Size_Saver' folder. This is to prevent processing images that have been processed before again.

You can go to your extensions data directory by going to Settings>>Extensions>>Other>>Click in any extension>>Click 'Data Directory' on the right side


RE: Image Cache Size Saver | Reduce your Playnite's Image cache size - darklinkpower - 10-21-2020

New version

v1.0.3
  • Fix error when ImageMagick has not been installed



RE: Image Cache Size Saver | Reduce your Playnite's Image cache size - darklinkpower - 03-29-2022

Thread locked

If you need support, want to request a feature, report a bug or simply ask a question, please use the means mentioned in the main post.

The reason for this is because it's very difficult and time consuming for me to check, keep track and reply in all the different threads for all the themes and extensions I have in the forums, which are over 30 now. I hope you can be understanding of this and I'm sorry for any inconvenience this can cause.