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 12-31-2020, 10:45 AM   #1
Cactus Chef
Addict
Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.Cactus Chef ought to be getting tired of karma fortunes by now.
 
Cactus Chef's Avatar
 
Posts: 385
Karma: 6324692
Join Date: Apr 2019
Device: Kobo Sage, Kobo Clara HD, Galaxy Tab S5e, Kindle 4th Gen
EPUB -> CBZ Conversion?

I did a thread search before posting this, and I see alot of articles on converting CBZ -> EPUB, but nothing on the reverse.

My use-case is that I have a bunch of digital comics I purchased from a vendor (we'll call them "Rainforest") and then stripped the DRM to get an EPUB. I'd prefer to just have them as generic CBR/CBZ files, though, so that I can leverage the dedicated comic-book reader apps on my tablet.

I've found that I can manually make a CBZ file from a comic source EPUB by just yanking the "Images" directory out of the extracted EPUB, zipping it up, and renaming it to a .CBZ extension. This is trivial to do, but quite time-consuming.

Has anyone created a plugin/conversion option that would let me do this within Calibre? I am sure this might result in some missing metadata, but I did try googling around, and as far as I'm aware there is no established "standard" for CBR/CBZ files for metadata files, etc. It looks like it's literally just a Zip Archive or RAR Archive of images, with the first chronologically-named image serving as the comic's cover.

If I'm wrong on this front, I'd appreciate any info about the CBR/CBZ standard.
Cactus Chef is offline   Reply With Quote
Old 12-31-2020, 06:21 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
What you have written accords with my understanding of CBZ/CBR.

You could convert the EPUB to ZIP. My default comic book viewer, Honeyview, can open ZIPs, and it ignores non image files, I'd be surprised if other comic viewers weren't similar.

I can't think of a built in way to rename a ZIP to CBZ from within calibre - you'd need to copy the ZIP somewhere, rename it to CBZ and then add it to the book and delete the ZIP. This is what I'd do - open the book folder, drag the ZIP to the desktop, close the book folder, rename the ZIP to CBZ, drag it back to the Book details panel and then delete the ZIP.

For a bunch of books you could use the command line ebook-convert tool to do the EPUB ->ZIP conversion, and do the ZIP->CBZ rename in a .BAT or Powershell script. See ==>> Command Line Interface

BR
BetterRed is offline   Reply With Quote
Advert
Old 01-14-2021, 09:40 PM   #3
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
Quote:
Originally Posted by Cactus Chef View Post
I did a thread search before posting this, and I see alot of articles on converting CBZ -> EPUB, but nothing on the reverse.

My use-case is that I have a bunch of digital comics I purchased from a vendor (we'll call them "Rainforest") and then stripped the DRM to get an EPUB. I'd prefer to just have them as generic CBR/CBZ files, though, so that I can leverage the dedicated comic-book reader apps on my tablet.

I've found that I can manually make a CBZ file from a comic source EPUB by just yanking the "Images" directory out of the extracted EPUB, zipping it up, and renaming it to a .CBZ extension. This is trivial to do, but quite time-consuming.

Has anyone created a plugin/conversion option that would let me do this within Calibre? I am sure this might result in some missing metadata, but I did try googling around, and as far as I'm aware there is no established "standard" for CBR/CBZ files for metadata files, etc. It looks like it's literally just a Zip Archive or RAR Archive of images, with the first chronologically-named image serving as the comic's cover.

If I'm wrong on this front, I'd appreciate any info about the CBR/CBZ standard.
Play around with Embed Comic Metadata.
I have no idea if it does what you want, but it can do things that are not implied by either the name, or description.
Fiat_Lux is offline   Reply With Quote
Old 09-27-2024, 04:25 PM   #4
bustacap
PC Dev
bustacap began at the beginning.
 
bustacap's Avatar
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
i know this thread is quite old but i found it through google and it may help others who are still looking for the same thing.
over the last few months i wrote a program that automatically turns epub manga and comics into cbz files, including correct reading order and direction, page alignment, metadata like chapters and more.
it started out as a python program, then a c# console program and is now a c# gui program. so if anyone is still interested in a niche use case like this, please try it out.
https://github.com/bust4cap/epub2cbz-gui
bustacap is offline   Reply With Quote
Old 09-27-2024, 04:29 PM   #5
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: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Out of curiosity, what are the advantages of epub2cbz compared to KCC (Kindle Comic Converter) for a epub to cbz conversion?
DNSB is online now   Reply With Quote
Advert
Old 09-27-2024, 04:45 PM   #6
bustacap
PC Dev
bustacap began at the beginning.
 
bustacap's Avatar
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
Quote:
Originally Posted by DNSB View Post
Out of curiosity, what are the advantages of epub2cbz compared to KCC (Kindle Comic Converter) for a epub to cbz conversion?
kcc does it the other way around, so from cbz to epub.
it cant convert from epub
bustacap is offline   Reply With Quote
Old 09-28-2024, 12:08 AM   #7
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: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bustacap View Post
kcc does it the other way around, so from cbz to epub.
it cant convert from epub
The last time I looked at KCC, it could take a ePub input file and output a CBZ file. I just tested an input ePub and KCC output a CBZ sized to fit the screen on a Libra Colour (selected output device).
DNSB is online now   Reply With Quote
Old 09-28-2024, 03:58 AM   #8
bustacap
PC Dev
bustacap began at the beginning.
 
bustacap's Avatar
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
Quote:
Originally Posted by DNSB View Post
The last time I looked at KCC, it could take a ePub input file and output a CBZ file. I just tested an input ePub and KCC output a CBZ sized to fit the screen on a Libra Colour (selected output device).
what kcc version are you using?
i tested all versions from the newest 6.2.0 to as far back as 2019 and they all say "unsupported file type" when trying to import/convert an epub file. all their documentation also doesnt mention epub as a valid import type
bustacap is offline   Reply With Quote
Old 09-28-2024, 04:12 AM   #9
bustacap
PC Dev
bustacap began at the beginning.
 
bustacap's Avatar
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
kcc source code confirms that the only valid import file types are "'.pdf', '.cb7', '.7z', '.cbz', '.zip', '.cbr', '.rar'"
bustacap is offline   Reply With Quote
Old 09-28-2024, 04:14 AM   #10
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: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bustacap View Post
what kcc version are you using?
i tested all versions from the newest 6.2.0 to as far back as 2019 and they all say "unsupported file type" when trying to import/convert an epub file. all their documentation also doesnt mention epub as a valid import type
A bit weird since while I did have to change the dropdown to all files on the file selector, once I did that, I could select an ePub files as the input, CBZ as the output and all seemed to work okay.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-09-28 001251.png
Views:	54
Size:	36.6 KB
ID:	211066  
DNSB is online now   Reply With Quote
Old 09-28-2024, 05:10 AM   #11
bustacap
PC Dev
bustacap began at the beginning.
 
bustacap's Avatar
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
Quote:
Originally Posted by DNSB View Post
A bit weird since while I did have to change the dropdown to all files on the file selector, once I did that, I could select an ePub files as the input, CBZ as the output and all seemed to work okay.
seems to be more of a bug with the file picker than an intended feature. when you drop the files into the window, the error message pops up correctly.
anyway, back to the differences. doing it this way, kcc just extracts the images folder and renames the files to its kcc naming scheme. it doesnt include any metadata like chapters, it doesnt respect proper reading order or page alignment or anything. it just extracts the images and renames them
bustacap is offline   Reply With Quote
Old 09-28-2024, 07:15 AM   #12
bustacap
PC Dev
bustacap began at the beginning.
 
bustacap's Avatar
 
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
i also did a quick speedtest with 10 test files.
kcc took around 3:30 minutes total with the setting "disable processing"
epub2cbz took less than 6 seconds total with every option enabled
bustacap is offline   Reply With Quote
Old 09-28-2024, 03:29 PM   #13
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: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Thanks for the feedback. My daughter is the one who uses KCC and so far she has been happy enough with the results. I'll point her at epub2cbz and see what she thinks of it.
DNSB is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre cbr/cbz to epub conversion help needed! Cristofer Conversion 8 08-26-2017 08:01 PM
Zip to CBZ 'conversion' BetterRed Conversion 6 10-22-2013 10:52 PM
Conversion of comics (CBR/CBZ) FangornUK Conversion 269 09-06-2012 12:43 AM
.cbz conversion hangs roguesith Conversion 5 12-10-2011 04:14 AM
CBZ Conversion Error Mac OS X 10.5.4 ttate90303 Calibre 2 08-23-2008 10:13 AM


All times are GMT -4. The time now is 12:41 AM.


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