0 of 0

File information

Last updated

Original upload

Created by

roskospoko

Uploaded by

roskospoko

Virus scan

Safe to use

Tags for this mod

About this mod

Replace heavy PNG images used by FOMOD installer with lighter JPGs to save space.

Requirements
Permissions and credits
Changelogs
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.