
Comic San
Table of Contents
What is Comic-san?
Comic-san is a command line software to extract panels from comic books and sittch them together to suit small displays of ebook readers. (Some manual interventaion is required but when tuned, 99% of the tasks can be automated.)
Turn something like this:
into something like this:
In the above example, the readability is not bad in the first image but it’s horrible for navigation. Whereas the Comic-san images are easy to navigate and offers much better visibility into the text.
Motivation
I wrote this script to convert my Tintin collection to books suitable for Kobo Clara BW. So, everything is designed with that in mind. However, the code is simple and you can play with the logic to suit your needs.
Code
https://github.com/dvnlgls/comic-san
Metrics
Processing time varies based on the book but I’ll describe my experience:
UPDATE: On Macbook Air M2 (8 cores), the time drops to 1 minute and few seconds!
Intel Mac Pro 2016 16GB RAM, 8 cores (yes, a vintage model!)
Tintin books: avg 400mb. Approximately 70 color pages, resolution: 3000x4000 px.
Time: approx. 3 minutes. Or 2 minutes if B/W is skipped (obviously excluding manual intervention).
File sizes: (Based on the Tintin book example,)
Original book: 400 MB
Color book: 165 MB
B/W book (resized): 35 MB
Panels zip: 174 MB

