MaddTheSane / Simple-Comic

macOS comic viewer
MIT License
261 stars 23 forks source link

Simple Comic is not organizing pages in the proper number sequence #101

Open NandoSD opened 1 year ago

NandoSD commented 1 year ago

Simple Comic (SC) is not organizing pages in the proper number sequence. This issue seems to be related to using different file types in the archive (CBR, CBZ, etc). In my case, PDFs are placed first in the book, regardless of the page number title, and images are placed after the PDFs.

This issue does not appear in Mac Quicklook, it shows the pages in the proper sequence, but it will not show animated files in a CBZ (such as gif), while the Simple Comic app will show those types of animations.

This is how Simple Comic is how the app shows the title of the pages. Below is are the Titles and pages, Archive.cbz is the archive name.

PAGE SEQUENCE: -- 1 ------------ 2 ----------- 3 ----------- 4 ------------ 5 ------------ 6 SC TITLE: ---------- Page2.pdf -- Page5.pdf -- Page5.pdf -- Archive.cbz -- Archive.cbz -- Archive.cbz SC SUBTITLE: ------ page 1 ------ page 1 ------ page2 ----- page2.jpg ---- page3.gif ---- page4.jpg

In the above, Archive.cbz contains 5 files, one is a two-page PDF, so there are six total pages on the CBZ.

Solutions I tried included,

(1) separating the PDFs into individual pages. This made no difference to the end result, the pdf pages are shown in correct sequence either way.

(2) using a PDF app to label the PDF pages, meaning page2.pdf shows its page number as 2 in a PDF reader, and page5.pdf shows the pages as 5 and 6 in a PDF reader. This made no difference to the end result in SC.

nickv2002 commented 1 year ago

In general, I would advise not mixing file formats in this way. It's not really the target use for Simple Comic.

That said, if you can share a simple/contrived example zip file I can take a closer look. Thanks!

NandoSD commented 1 year ago

Hello Nick,

I don't have an example I am allowed to send you. The only problem is Simple Comic not honoring sorting pages by the filename only. The extension seems to be the cause of the problem.

A way to think about what I am trying to do using Simple Comic is a magazine style book that has static images, a few animated gif, and PDFs with copyable text content. In my case, the magazine is a tutorial … the layout concept is the same. In a comic book, an example would be a page that shows action, like a punch thrown, or an explosion.

I know I can convert the PDFs to images and the sorting of pages by Simple Comic will be correct. But, the text content pages would need to be OCR'ed which was not my goal. PDFs are much better at rendering small text (10-12 pt). it can be zoomed in without jagged-edges, and the file size is small. Images made from a PDF page are larger in size and lower in quality.

You might consider fixing the PDF sorting issue some day. I will say that future of comic books will be ones that have some animation included (gifs). PDF simply offer a smaller size CBZ/CBR with higher quality small text.

– Nando

Sent with Proton Mail secure email.

Nick Vance Wrote:

In general, I would advise not mixing file formats in this way. It's not really the target use for Simple Comic.

That said, if you can share a simple/contrived example zip file I can take a closer look. Thanks!

------- Original Message ------- On Tuesday, April 25th, 2023 at 9:58 AM, Nick Vance @.***> wrote:

In general, I would advise not mixing file formats in this way. It's not really the target use for Simple Comic.

That said, if you can share a simple/contrived example zip file I can take a closer look. Thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

nickv2002 commented 1 year ago

Can you cook up a contrived example archive with PDF pages that don't sort correctly? Doesn't have to be any files you actually use, just make a PDF with a number on each page or similar.