Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-20-2025, 03:11 PM   #1
CavemanJoe
Junior Member
CavemanJoe began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2025
Device: PRS-505
Apply cbz-style image processing to epub conversion?

Hey all, vintage ereader user here, intensely appreciative of Calibre's handling of .cbz files and hoping that similar functionality can be applied to non-cbz inputs.

When you use Calibre's built-in PRS-505 profile to import a .cbz (such as a comic) and convert to .epub, Calibre will automatically resize every image to perfectly fit the PRS-505's screen, and also turn the image greyscale to an appropriate number of shades to further reduce file size, with optional sharpening. I believe this feature was originally a plugin that was impressive enough to be merged with the main Calibre project.

I have a stack of ex-display-model PRS-505 ereaders that I'm replacing batteries and handing out to friends, and I'm in the process of writing a guide on how to make new ebook files play nicely with vintage ereaders, to try to keep these machines in use and out of the e-waste stream. Even after removing DRM, these lovely old 600x800 machines frequently choke on the gargantuan chapter heading images inside modern .epub files.

I've had success using a combination of Polish Books (to subset fonts and compress images) and Bulk Image Resizer plugins, but Bulk Image Resizer can't be run on multiple books at once (it requires you to enter the ebook editor window and run on books one at a time), nor does it greyscale any images.

The process I've come up with is a far cry from the excellent one-click .cbz to .epub workflow, and I was initially thinking of writing a plugin that would automatically shrink all images to screen-appropriate sizes and colour depth, but quickly realised this would be a massive duplication of effort given that Calibre already has the ability to resize-and-greyscale all images when converting .cbz to .epub, but doesn't have the same behaviour when importing books in other formats.

Is there a way to do this that I'm missing, should I submit this as a feature request, or am I diving into plugin writing?

Cheers!
CavemanJoe is offline   Reply With Quote
Old 03-20-2025, 07:28 PM   #2
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,195
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by CavemanJoe View Post

I've had success using a combination of Polish Books (to subset fonts and compress images) and Bulk Image Resizer plugins, but Bulk Image Resizer can't be run on multiple books at once (it requires you to enter the ebook editor window and run on books one at a time), nor does it greyscale any images.

The process I've come up with is a far cry from the excellent one-click .cbz to .epub workflow, and I was initially thinking of writing a plugin that would automatically shrink all images to screen-appropriate sizes and colour depth, but quickly realised this would be a massive duplication of effort given that Calibre already has the ability to resize-and-greyscale all images when converting .cbz to .epub, but doesn't have the same behaviour when importing books in other formats.

Cheers!
The combination of Editor Chains and Action Chains can process images from multiple books in your library.

Editor chain as an action called "Run Command", which enables you to run a command like ImageMagick convert to process images inside ebooks. More on this in this post.

For more information, consult the documentation of both plugins.
capink is offline   Reply With Quote
Advert
Old 03-20-2025, 10:13 PM   #3
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: 45,947
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Have you looked at the Kindle Comic Converter? It will convert images to epub and has quite a few options. See Kindle Comic Converter - Convert comics/manga to MOBI/EPUB
DNSB is offline   Reply With Quote
Old 03-20-2025, 11:28 PM   #4
CavemanJoe
Junior Member
CavemanJoe began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2025
Device: PRS-505
Quote:
Originally Posted by DNSB View Post
Have you looked at the Kindle Comic Converter? It will convert images to epub and has quite a few options. See Kindle Comic Converter - Convert comics/manga to MOBI/EPUB
Thanks for the rec but I'm already very happy with how Calibre processes comics, I just want to use that same auto-resize-greyscale-etc functionality on images inside regular .epub files for things like massive chapter heading images, maps, ads for the publisher's other books, author mugshots, that kind of thing.
CavemanJoe is offline   Reply With Quote
Old 03-20-2025, 11:29 PM   #5
CavemanJoe
Junior Member
CavemanJoe began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2025
Device: PRS-505
Quote:
Originally Posted by capink View Post
The combination of Editor Chains and Action Chains can process images from multiple books in your library.

Editor chain as an action called "Run Command", which enables you to run a command like ImageMagick convert to process images inside ebooks. More on this in this post.

For more information, consult the documentation of both plugins.
Thanks, if I can't get Calibre to do this with built-in methods I'll take a look at the docs for these two plugins.
CavemanJoe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB -> CBZ Conversion? Cactus Chef Conversion 12 09-28-2024 02:29 PM
CBZ to EPUB/PDF conversion and color Stingo Conversion 9 05-27-2024 08:42 PM
CBZ conversion stretches out image hollowheart Conversion 1 07-07-2023 01:36 AM
CBZ/CB7 to ePub image renaming, why? Uhuru N'Uru Calibre 0 07-21-2021 02:23 PM
Calibre cbr/cbz to epub conversion help needed! Cristofer Conversion 8 08-26-2017 07:01 PM


All times are GMT -4. The time now is 03:36 AM.


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