Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2026, 09:49 AM   #1
gianni_1
Connoisseur
gianni_1 began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Nov 2015
Device: tablet
png to jpg

Hi,
with a view to further improving this fantastic program, would it be possible to modify the "Compress images losslessly" menu so that, before compressing images, it converts .png files to .jpg files, since compressing .jpg files is much more effective and, above all, much faster?
Hi and thank you.
Gianni
gianni_1 is offline   Reply With Quote
Old 05-28-2026, 01:47 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,291
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That would not be lossless anymore.
kovidgoyal is offline   Reply With Quote
Old 05-28-2026, 02:31 PM   #3
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,827
Karma: 24222221
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by gianni_1 View Post
Hi,
with a view to further improving this fantastic program, would it be possible to modify the "Compress images losslessly" menu so that, before compressing images, it converts .png files to .jpg files, since compressing .jpg files is much more effective and, above all, much faster?
Shameless plug: my Sigil PNGOptimizer plugin also supports lossy png optimization with pnquant.
(If you don't want to install Sigil and the plugin you can also unzip your epub and use the pnquant binary for your OS.)
Doitsu is offline   Reply With Quote
Old 05-29-2026, 06:08 AM   #4
gianni_1
Connoisseur
gianni_1 began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Nov 2015
Device: tablet
from png to jpg

Quote:
Originally Posted by kovidgoyal View Post
That would not be lossless anymore.
Hi Kovid,
Yes, that's true, but that's the purpose of my question—to reduce the size of images that are definitely too large. I think it's unacceptable for a text file of about 500 KB to be 54 MB because of .png images. These images are often 300 dpi or higher, while they could be as low as 72 dpi.

Thanks and goodbye,
Gianni
gianni_1 is offline   Reply With Quote
Old 05-29-2026, 12:07 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,291
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There you go: https://github.com/kovidgoyal/calibr...a46e99cf121451
kovidgoyal is offline   Reply With Quote
Old 05-29-2026, 12:14 PM   #6
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,238
Karma: 7966751
Join Date: Sep 2020
Device: Libra Colour
Hi Kovid, I have 2 notes about the latest features: Pages recount dialog says 1,000 books per hour. On pretty standard hardware, I finished a large library recount at a 9,250 titles per hour speed - largely EPUB formats but also very heavy PDFs, and all other formats included.

The new Annotation grouping is awesome, but it didnt pick any custom highlight formats.

edit: I meant the 'Restrict to' dropdown.

Last edited by Comfy.n; 05-29-2026 at 12:49 PM.
Comfy.n is offline   Reply With Quote
Old 05-29-2026, 10:10 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,291
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes, I prefer to err on the side of caution. Speeds can drop on machines with bad antivirus or heavy other loads. 1000 books an hour sets the base expectation. On most ordinary machines you will get 5x-10x that.
kovidgoyal is offline   Reply With Quote
Old 05-31-2026, 04:19 AM   #8
gianni_1
Connoisseur
gianni_1 began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Nov 2015
Device: tablet
png to jpg

Quote:
Originally Posted by kovidgoyal View Post
Hi Kovid,
Thanks for your reply, but I'd like to ask what I should do with this code. Is it already included in your program, or will it be in the future?
Thanks again, and bye,
Gianni
gianni_1 is offline   Reply With Quote
Old 05-31-2026, 03:18 PM   #9
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: 52,199
Karma: 180576670
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
It will be included in the next release of calibre after that notification was posted. You can run it before that release by running calibre from source as described in the calibre user manual https://manual.calibre-ebook.com/develop.html.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
jpg and jpeg conversion to png in editor rjwse@aol.com Editor 9 03-25-2023 07:49 AM
Showing a jpg /png on the Kindle stevejoung Kindle Developer's Corner 10 01-07-2023 05:20 AM
Disappearing images (png converted to jpg) Liudprand Editor 11 10-05-2022 03:00 PM
PNG to JPG ableal Calibre 12 10-04-2022 07:39 PM
Replace all jpg with png with transparent background? Claghorn Recipes 0 08-16-2012 12:14 PM


All times are GMT -4. The time now is 11:10 AM.


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