Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.2
- Improved logic: now converts only PNG images referenced in ModuleConfig.xml in <image> and <moduleImage> tags
- Faster initial scanning
- Archives are sorted alphabetically in the selection dialog
- When there are no optimizable archives, a dedicated message is displayed instead of the empty selection dialog
Version 1.1
This version does not contain any new features or fixes. You do not need to download it if you already have version 1.0 installed
- Added the "optimize_fomod_images" folder in the archive so that installation instructions are clearer - Removed an useless test image from \optimize_fomod_images\tools\ImageMagick folder
Version 1.0
Initial release
Sometimes mod authors use FOMOD to simplify the installation process for end users, including sample images to help choose the right options. Sometimes these images are large (raw game screenshots) and this significantly increases the size of the mod package.
This MO2 pluging can help users to save space and modders to optimize FOMOD packages before a release.
How does it work?
Checks your MO2's downloads folder searching for supported FOMOD archives containing optimizable images (PNG images). NOTE: supports only .zip and .7z archives (.rar are skipped because read only).
Lets you decide which archives to optimize.
For each selected archive it converts PNG images to JPG and repack the archive replacing images and updating references in ModuleConfig.xml. NOTE: depending on how big your selected list is this step can take a while.
Final repackaged archives keep the same name as the original ones, so MO2 will keep the related metadata (status and date).
Modders can use it to optimize FOMOD images before a release and users can use it to save space.
Installation
Unzip the download file, place the 'optimize_fomod_images' folder into the 'plugins' directory of Mod Organizer 2.
Start or Restart Mod Organizer 2.
Usage
Find the 'Tools' menu in Mod Organizer 2.
Select the 'Optimize FOMOD images' option.
Follow the wizard
Technical Info
This plugin contains embedded instance of 7-Zip (to read and modify archives) and ImageMagick (for image conversion).
During the conversion to JPG the PNG's alpha channel is replaced with a solid color.
Edit optimize_fomod_images.ini if you want to change alpha color and JPG quality.
Converts only PNG images referenced in ModuleConfig.xml in <image> and <moduleImage> tags.