View Single Post
Old 10-28-2021, 11:27 AM   #1
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
[Plugin] JPEGOptimizer - Lossless image optimization

Released: November 26, 2021
Current Version: "0.0.3"

This plugin uses the jpegoptim command line utility to losslessly reduce the size of JPEG files.

Disclaimer: Since this plugin will replace the images in your ebook with optimized images, you might want to save your ePub or create a checkpoint before running this plugin.

Credits

BeckyEbook created the plugin icon, and KevinH provided the macOS binary.

System requirements

This plugin requires at least Sigil 0.9.8. If you uncheck the Use Bundled Python option, you'll also need to install Python 3. Linux users will also need to install the jpegoptim package (Debian, Arch).

Installation

1. Select Manage Plugins from the Plugins menu and enable the Use Bundled Python option, if it isn't already enabled (or greyed out).
2. Click Add Plugin and select JPEGOptimizer_v0.0.3.zip. This will install the plugin, which you can select via Plugins > Edit > JPEGOptimizer.

Settings

To turn on lossy optimization, edit JPEGOptimizer.json and change the quality value. For example:

Code:
  "quality": 80,
To display the folder that contains JPEGOptimizer.json select Edit > Preferences > Open Preferences Location. Then double-click plugins_prefs and JPEGOptimizer.
Windows users can also press WIN+R, paste %localappdata%\sigil-ebook\sigil\plugins_prefs\JPEGOptimizer into the Run dialog box and hit Enter.

License: GNU General Public License v3 (GPL-3)
Attached Files
File Type: zip JPEGOptimizer_v0.0.3.zip (405.9 KB, 2075 views)

Last edited by Doitsu; 11-26-2021 at 02:22 PM. Reason: Fixed codepage issue
Doitsu is offline   Reply With Quote