PyComicView - 1
Jeffrey Aylesworth (jeffayle)
PyComicView is a python library for displaying comic directories.
There is a lack of good, free and Mac compatible comic book readers. Not that this is only for Mac, but being written in Python, it should work properly on any platform.
Looking for a program for reading comics, some of the problems I found in the major readers are:
Instead of completely writing a whole new comic reader, I decided to write a python module that will display a comic when told to. The reasoning was that without the need to write all the comic displaying code, more people would be willing to write frontend programs that organize comics and all that stuff.
PyComicView is contained in a single module,
This alone is enough to display a comic, as in the example found in
That's all! This will display the comic in the directory specified on the command line. (Note: The Comic constructor expects a shell glob pattern, and not a directory. This may change in the future)
However, it can be subclassed to add more functionality, for example by overloading the customDraw() method, you can add extra information to the display.
For example, in
This will draw the page number in the upper left hand corner.
It is really bare on features. It doesn't use too much memory, but does use more processor cycles than other comic readers, due to being written in python.
The main feature it has (that I have not seen in other viewers) is continuous scrolling from one page to the next, ie. it looks like one long page.
The module is still young, and limited in features. Currently, it can only display uncompressed images in a directory, and not in standard cbz or cbr archives. I am undecided on whether or not to include reading from archives, each has it's advantage; not having that feature would mean that each program can organize files however they want, and not reading from archives is faster. Having the ability to read from archives would mean that each program would not need to implement it themselves, and would allow for optimizations specific to it.
There is also as yet, no zooming functionality. There probably wont be for a while. In the nearer future, there will probbly be a magnifying glass to help see detail.
Each page is stored in memory only once, and that is what is shown on screen. It is stored scaled to the size being viewed (when you resize, the image is reloaded from disk). Pages that are more than two pages away from the currently view pageare deleted from memory, and are loaded again when needed.
When reading a typically sized comic on full width (1280px) it usually uses 48mb, and spikes at 58mb.
PyComicView is written by Jeffrey Aylesworth. See
The comic in the screenshot is "A Spectrum of Rights": http://wiki.creativecommons.org/Spectrumofrights_Comic1
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.