12-31-2020, 10:45 AM | #1 |
Addict
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. |
12-31-2020, 06:21 PM | #2 |
null operator (he/him)
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 |
Advert | |
|
01-14-2021, 09:40 PM | #3 | |
Addict
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
|
Quote:
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. |
|
09-27-2024, 04:25 PM | #4 |
PC Dev
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 |
09-27-2024, 04:29 PM | #5 |
Bibliophagist
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?
|
Advert | |
|
09-27-2024, 04:45 PM | #6 |
PC Dev
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
|
|
09-28-2024, 12:08 AM | #7 |
Bibliophagist
Posts: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
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).
|
09-28-2024, 03:58 AM | #8 | |
PC Dev
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
|
Quote:
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 |
|
09-28-2024, 04:12 AM | #9 |
PC Dev
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'"
|
09-28-2024, 04:14 AM | #10 |
Bibliophagist
Posts: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
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.
|
09-28-2024, 05:10 AM | #11 | |
PC Dev
Posts: 13
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
|
Quote:
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 |
|
09-28-2024, 07:15 AM | #12 |
PC Dev
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 |
09-28-2024, 03:29 PM | #13 |
Bibliophagist
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.
|
|
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 |