39
submitted 1 day ago by [email protected] to c/[email protected]

Does anyone here know a self hostable service (or a demo of someone else hosting it) which can split common .cbr filetype to a .cbz or other filetype to split the panels?

So for example the 1 image I put with this post, would be 8 seperate images (pages).

That would ideally somehow make the comic books readable on a (somewhat old) black and white travel-Kobo...

top 12 comments
sorted by: hot top new old
[-] [email protected] 3 points 19 hours ago

Both cbr and cbz are just compressed archives - R for Rar and Z for Zip. The format has got nothing to do with how the images are displayed in a reader application.

If you want any reader to read a comic frame by frame instead of page by page, you'd have to uncompress the file, then cut out each individual frame and give them sensible names (eg. page_39_frame_03.png or somesuch) and then recompress.

Someone else in the thread mention software that can do this, but it might not always work as expected, when the layout is not straight-forward.

[-] [email protected] 20 points 1 day ago

This isn't a thing because there are many comics that don't adhere to "frames". They overlap with others, use the whole page, etc.

But beyond this, decompress your CBR/cbz files and use imagemagick to find frames and isolate them.

[-] [email protected] 6 points 1 day ago

Even in the page given as an example here there are two speech bubbles that are pushing their boundaries.

[-] [email protected] 5 points 1 day ago

This is a thing. It just doesn't work very reliably for the reasons you mentioned.

It does work kind of ok on some comics like the one OP shared and generally pretty well on manga since that tends to be more consistent with the boxes.

I don't know of anything open source or self hosted that does this though.

[-] [email protected] 0 points 1 day ago

This sort of thing ain't my bag baby.

[-] [email protected] 8 points 1 day ago* (last edited 1 day ago)

isnt this more of an image vision task than a simple utility task?

I'd be amazed if each of those panels coordinates were annotated somewhere

[-] [email protected] 5 points 1 day ago* (last edited 1 day ago)

i don't know any on computer but some app offer that on android/ios. i guess they look for some kind of contrast pattern to determine each frame.

Did try and it does work really well on some but not all garphics novel / comics

[-] [email protected] 2 points 1 day ago

What's the name of the app you tried?

[-] [email protected] 2 points 1 day ago

I am mainly reading on iPad due to screen ratio, I'm self hosting yacreader library and use yacreader app (server is free, app is one time payment on iPad, does have an android/windows client but not developed as iOS version). If I remember correctly, I think there is also Panel on ipad that do the same (would need to check). On android, I need to check and can answer tomorrow (almost 1am here), could be cdisplayex but unsure.

[-] [email protected] 3 points 1 day ago

the coordinates aren't there i think, but there are github projects out there that "detect" the panels and suggest split based on that. For most of the panels of most of the comics, that would be more than enough to do a clean split. I just can't find a real relatively easily deployable service that incorporates it.

https://maxhalford.github.io/blog/comic-book-panel-segmentation/

[-] [email protected] 3 points 1 day ago

Just following your above link, you could pre-convert your comics using this: https://framagit.org/nicooo/kumiko

this post was submitted on 18 Jun 2025
39 points (91.5% liked)

Selfhosted

46672 readers
563 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS