Hi, we created this project to optimize comics for Droid Comic Viewer. It reduces image size, converts to .cbz, and also converts .pdf files to .cbz format.
Load speed increases a lot.
It's written in python and has the following dependencies:
Great contribution! Your forum status has been updated to Contributor.
A couple of notes after a quick glance:
To improve performance, the zip compression level can be set to 0 (store). The lower the compression, the faster Droid Comic Viewer will extract the images.
You might want to set the maximum size (now hardcoded to 1024) as a parameter.
Changes: * the zip compression level now is 0(store) * max width can be set * multiple args support, ex. python acvoptimizer.py -w 800 test.cbr test.pdf dir_with_comics/
Nice. Another user on the forums here wrote a unix shellscript to help convert comic files and I wrote a DOS batch script that uses 7-zip to convert CBR to CBZ (my script also tries to remove banner images other other unnecessary files that might take the limited space available). I like that your code is in Python, I should be able to make changes I might need without too much difficulty and I think this could be very useful. On the desktop I use MComix, also written in Python http://mcomix.sourceforge.net/
There is no copyright information or author name included in your code. What is the license for your code? (Personally I prefer MIT or Apache license.)
It might be good to also support the flag -v --version that returns the application name and version number as GNU recommend all command line applications at support -v and -h for consistency.