|
|
#1 |
|
Connoisseur
![]() 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 |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,291
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That would not be lossless anymore.
|
|
|
|
|
|
#3 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,827
Karma: 24222221
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
(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.) |
|
|
|
|
|
|
#4 |
|
Connoisseur
![]() Posts: 92
Karma: 10
Join Date: Nov 2015
Device: tablet
|
from png to jpg
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 |
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,291
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There you go: https://github.com/kovidgoyal/calibr...a46e99cf121451
|
|
|
|
|
|
#6 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#7 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#8 | |
|
Connoisseur
![]() Posts: 92
Karma: 10
Join Date: Nov 2015
Device: tablet
|
png to jpg
Quote:
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 |
|
|
|
|
|
|
#9 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
![]() |
|
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 |