Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2026, 07:48 PM   #1
Pachuqismo
Enthusiast
Pachuqismo began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Nov 2009
Device: SM-T820, Galaxy S7
Calibre error on 'Compress images'

I'm getting the following error on ePubs (also after reinstalling Calibre). I only select to 'Enable lossy compression of JPEG images':

Calibre, version 9.11.0
ERROR: Unexpected error: Failed to compress images, click "Show details" for more information

Traceback (most recent call last):
File "calibre\gui2\tweak_book\polish.py", line 348, in run_compress
File "calibre\ebooks\oeb\polish\images.py", line 172, in compress_images
File "calibre\ebooks\oeb\polish\images.py", line 151, in convert_png_to_format
IndexError: Replacement index 5 out of range for positional args tuple

Any ideas? Cheers!
Pachuqismo is offline   Reply With Quote
Old 07-17-2026, 08:32 PM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 2,366
Karma: 7990245
Join Date: Sep 2020
Device: Libra Colour
This has been fixed, AFAIK. But we need to wait for next release.

https://github.com/kovidgoyal/calibr...b4fd71030f81e1
Comfy.n is offline   Reply With Quote
Advert
Old 07-17-2026, 09:03 PM   #3
Pachuqismo
Enthusiast
Pachuqismo began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Nov 2009
Device: SM-T820, Galaxy S7
Quote:
Originally Posted by Comfy.n View Post
This has been fixed, AFAIK. But we need to wait for next release.

https://github.com/kovidgoyal/calibr...b4fd71030f81e1
Thanks for your response, though the link refers to a bug in converting PNG to JPEG - I'm trying to further reduce JPGs.

I did a 'repair' of my Calibre and may have to do a clean install...

Cheers!
Pachuqismo is offline   Reply With Quote
Old Yesterday, 05:55 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,204
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If you aren't doing this compression of your JPG in the editor, try the editor. That's where I do it and I’ve not had an error.
JSWolf is online now   Reply With Quote
Old Yesterday, 09:10 AM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,038
Karma: 83121446
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by Pachuqismo View Post
Thanks for your response, though the link refers to a bug in converting PNG to JPEG - I'm trying to further reduce JPGs.

I did a 'repair' of my Calibre and may have to do a clean install...

Cheers!
While maybe it does, I sense that this fix will resolve your issue seeing your error occurs in line 151 which is being affected by this change
PeterT is offline   Reply With Quote
Advert
Reply

Tags
compress images, error


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compress images losslessly jlynton Calibre 12 07-09-2026 11:54 AM
compress multiple images gianni_1 Library Management 3 04-08-2025 09:38 PM
Compress images endemion06463 Conversion 18 04-23-2024 04:55 AM
Batch mode to compress images pmichelazzo Editor 2 06-17-2018 04:33 AM
No glyph available error and cannot compress png images crouton Editor 1 01-06-2017 10:02 PM


All times are GMT -4. The time now is 06:20 AM.


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