View Single Post
Old 03-16-2010, 07:43 PM   #1
brookman
n00b
brookman has learned how to buy an e-book online
 
brookman's Avatar
 
Posts: 19
Karma: 88
Join Date: Oct 2008
Location: Switzerland
Device: Sony PRS-505, iRex DR800SG
Wink manga2cbz for iRex DR800

New version 1.1

'manga2cbz for iRex DR800S(G)' is a free & simple tool for converting manga and comics to view on the iRex DR800S(G).

Features in v1.1:

- Unpack folders or zip / cbz / rar / cbr files (or any mix of nested combinations)
- Images: png, jpg, gif
- Crop white borders
- Rotate landscape images
- Re-size images to match the screen resolution
- Reduce colors to 4 - 256 levels of gray (additional library needed for < 256)
- Save pics as png / jpg and pack them into a cbz file

New:

- XML configuration (see automatically generated 'config.xml')
- Split landscape images. (enable in XML)
- Combining split and rotate is possible too. (split then rotate)
- Mulit-threading according to the number of CPUs available (or setting in XML)
- Bugfixes

Limitations & Bugs:
- Still no split archives supported
- Small bug with cropping

Use it together with the AMAZING 'CBZ Document Plugin' written by Kolenka.
see: Thread

>>> You can enable much better compression (color depth reduction with Floyd-Steinberg dithering) by downloading the file 'gif4j_pro_trial_2.3.jar' from http://www.gif4j.com/download.htm and putting it into the same directory. <<<

Usage: Just double click the jar to see the "GUI"
Or by console: java -jar manga2cbz.jar sourceFileOrDir destinationDir Title


XML configuration tags:
---
cropThreshold: 1 - 255 (255 means completely white)

threads: 1 - 16 (0 = automatic)

splitLandscape: Works only if picture width is at least 2x screen width. LEFT = reading from left to right, RIGHT = reading from right to left, OFF = disabled

rotateLandscape: Works only if picture width is bigger than picture height. CW = clockwise, CCW = counterclockwise, OFF = disabled

type: JPG or PNG

grayLevels: 4, 8, 16, 32, 64, 128 or 256 (smaller than 256 only works with the gif4j library)

Entering wrong values causes the whole config file to be reset to default.
---

This is still an early version. It may contain bugs and I won't take responsibility for damage of your hard- and software or any data loss.
I tested it with a folder containing several rar files, which them-selfs contained further directories and a mix of png and jpgs, totally about 1000 pages (220mb). It took ~10min to unpack, convert and repack them on my Athlon 4400 (cbz size 138mb).

Please share your suggestions for improvement here.

Enjoy!
Attached Files
File Type: zip manga2cbz_v1.01.zip (179.1 KB, 420 views)
File Type: zip manga2cbz_v1.1.zip (205.7 KB, 530 views)

Last edited by brookman; 03-18-2010 at 03:17 PM. Reason: new version
brookman is offline   Reply With Quote