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…

  • non_burglar@lemmy.worldEnglish
    24·
    27 days 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.

    • Unboxious@ani.socialEnglish
      8·
      27 days ago

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

    • vala@lemmy.worldEnglish
      61·
      27 days 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.

  • tetris11@lemmy.mlEnglish
    10·
    27 days 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

    • paf@jlai.luEnglish
      5·
      27 days 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

        • paf@jlai.luEnglish
          2·
          27 days 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.

    • freebee@sh.itjust.worksOPEnglish
      31·
      27 days 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/

  • MummifiedClient5000@feddit.dkEnglish
    6·
    27 days 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.