Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Combine multiple CBZ files #612

Open
User28237489 opened this issue Nov 4, 2023 · 12 comments
Open

[Feature Request] Combine multiple CBZ files #612

User28237489 opened this issue Nov 4, 2023 · 12 comments

Comments

@User28237489
Copy link

User28237489 commented Nov 4, 2023

Option for cbz files to be converted and compiled into one epub output.

At the moment I unpack cbz's, rename the folder to the chapter number, compress the file back to a zip, then append .cbz. KCC then converts the new file and all is good. Sometimes I will have to do this 100-200+ times for single chapters not placed into volumes yet.

I have tinkered around with EpubMerge in Calibre but the resulting image on my Kobo Sage is altered and gets clipped on the right side and bottom.

Greatly appreciate all your work, thank you.

Edit more details:

Manga chapter CBZs are released as they are translated each week. My workflow is selecting all and unpacking which results in folders (chapters) of images. Sometimes these need to be renamed to not throw an error message in KCC. Selected chapter folders are dragged into a new single folder create a volume folder. New single volume folder is compressed into a single zip. Resulting file is run through KCC to build an epub.

Would be cool if, for example, ten CBZ files are dropped in and with the option checked KCC could spit out one single epub.

@axu2 axu2 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
@axu2
Copy link
Collaborator

axu2 commented Nov 29, 2023

New single volume folder is compressed into a single zip.

This part is not necessary, you can use the folder directly in kcc.

You can chunk the final output automatically with variant b: https://github.com/ciromattia/kcc/wiki/Automatic-output-splitting

@8uziak
Copy link

8uziak commented May 17, 2024

Proof of Concept

image

Repository owner deleted a comment from mergen3107 May 17, 2024
Repository owner deleted a comment from mergen3107 May 17, 2024
@8uziak
Copy link

8uziak commented May 17, 2024

Also, do we consider expanding the usability of the Add directory button to make use of it to add directories containing CBZ files?

Is Chapter fusion chapter's name clear? Or change it to CBZ merge or something else?

@axu2
Copy link
Collaborator

axu2 commented May 17, 2024

To be clear, you are planning to automate this process? @8uziak

Screen.Recording.2024-05-17.at.9.40.16.AM.mov

On Windows, you do the same with 7-zip instead.

Screenshot 2024-08-11 104038

@axu2 axu2 changed the title [Feature Request] Combine multiple CBZ files to single .epub [Feature Request] Combine multiple CBZ files May 17, 2024
@8uziak
Copy link

8uziak commented May 17, 2024

@axu2
Yeah, I know there is a workaround, but i feel like KCC could skip the part where you need to unpack cbz files manually. Therefore I think to add a feature with adding cbz directory and merging it into one desired file format.

  • [feature to consider] maybe we could do a button rearrangement

@axu2
Copy link
Collaborator

axu2 commented May 17, 2024

Does it even need to be an option? If it sees a directory of cbz unpack them all?

@8uziak
Copy link

8uziak commented May 18, 2024

@axu2
Allowing Adding directory with CBZ files doesn't require new features in KCC's UI. We want to detect CBZ files and unpack them in the same way you attach CBZ files using Add file button.

New checkbox (Chapter fusion) I suggested would be a separate feature where you can merge all CBZ files into one desired output file.

Example scenario:

  • add directory with CBZ files (10 CBZ files in directory)
  • check Chapter fusion checkbox
  • pick MOBI/AZW3
  • convert
    -> In scenario above, a program detects there is a directory with CBZ files so it unpacks them. Chapter fusion checkbox is checked so a program creates a new folder (didn't think about naming yet) where it sorts and renames all image files to this one new folder. A user gets all .mobi files as usual plus one big .mobi file with all 10 chapters (from 10 different CBZ files). A folder with 10 chapters would be an effect of Chapter fusion checkbox.

Hope my idea is a little bit cleaner :)

@axu2 and let's move the issue here rather than write on two separate threads

@axu2
Copy link
Collaborator

axu2 commented May 19, 2024

Ah yes, that makes sense now, I was combining the two features in my head.

just drag a bunch of CBZ into the KCC window and click merge
image

Maybe id call it

Merge all files

@Levi--G
Copy link

Levi--G commented Jun 8, 2024

I would love to see this, im currently using a script as well to unpack. Would it maybe also be an option to detect/group per volume? maybe with an option? Something like:

unchecked: no grouping, repack individual files
indeterminate: group per volume or 10 items if no volume found in title
checked: group all

This would be awesome!

@axu2
Copy link
Collaborator

axu2 commented Jun 8, 2024

@Levi--G
Copy link

Levi--G commented Jun 10, 2024

@Levi--G

Have you tried variant b?

https://github.com/ciromattia/kcc/wiki/Automatic-output-splitting

I had not, i will try that but the problem remains that i cant import multiple CBZ in a directory and would have to create the directories with an external script :)
The problem i see with using the existing option is that it only works on the directories, but if you make it work on files as well and detect the Vol.xx names in the files that could work as well. :) Thanks

@axu2
Copy link
Collaborator

axu2 commented Jun 16, 2024

The ideal naming method would be a text field showing up when you click the merge all files box, similar to how you can manually type in a resolution in the custom 'other' profile. It could possibly be pre-populated with the longest common prefix.

Your other PR is on hold because it might need to change depending on this PR.

Edit: @8uziak are you still interested in this feature? I edited the discussion to make it clearer what the focus is.

Repository owner deleted a comment from User28237489 Aug 11, 2024
Repository owner deleted a comment from User28237489 Aug 11, 2024
Repository owner deleted a comment from 8uziak Aug 11, 2024
Repository owner deleted a comment from 8uziak Aug 11, 2024
Repository owner deleted a comment from User28237489 Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants