Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
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,584
Karma: 22735033
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, 1283 views)

Last edited by Doitsu; 11-26-2021 at 02:22 PM. Reason: Fixed codepage issue
Doitsu is offline   Reply With Quote
Old 10-28-2021, 12:31 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I gave the plugin a quick try and it worked well. Very nice.

Last edited by DNSB; 10-28-2021 at 05:04 PM. Reason: Removed comment on release date in November
DNSB is offline   Reply With Quote
Old 10-28-2021, 03:37 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Added to the plugin index. Thanks!
DiapDealer is offline   Reply With Quote
Old 12-05-2022, 05:06 PM   #4
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 152
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
Hi, I'm really liking this plugin; it's part of my workflow now for all new ebooks. I don't suppose there's something like this that can handle bulk epub processing? I was thinking there may have been something similar as a Calibre plugin or standalone but I can't find anything like it.
Vanguard3000 is offline   Reply With Quote
Old 12-06-2022, 01:19 AM   #5
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Vanguard3000 View Post
I don't suppose there's something like this that can handle bulk epub processing?
You could use the Calibre Polish books tool for this.
Doitsu is offline   Reply With Quote
Old 12-06-2022, 12:03 PM   #6
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 152
Karma: 474196
Join Date: Jan 2011
Location: Ottawa
Device: Kobo Aura H2O
Quote:
Originally Posted by Doitsu View Post
You could use the Calibre Polish books tool for this.
Perfect, that's exactly what I was looking for. Thanks!
Vanguard3000 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to add image file via plugin? nirosan Plugins 7 05-25-2019 12:38 AM
Strange behavior of image lossless compression since it has been "fixed" Francois_C Editor 2 05-18-2018 03:23 AM
Calibre plugin image resources jackie_w Development 10 10-27-2015 02:01 PM
Using image in plugin code Jellby Development 7 03-11-2014 10:56 PM
Image optimization for Kindle 2 thelostemperor Amazon Kindle 10 03-13-2009 05:34 PM


All times are GMT -4. The time now is 04:06 PM.


MobileRead.com is a privately owned, operated and funded community.