Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-02-2010, 12:22 PM   #1
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Canti: Manga Processing Program

(visit http://www.bitcake.com/ for latest version, now available with a gui!)

(this feature list applies to the latest version of Canti, the versions in this thread will not have all these features)
-Feature List-
+Image processing:
-Scale width/height (always maintains original aspect ratio)
-Auto trim white space around a scan
-Auto chop white rows and columns within a scan
-Auto rotate scans to desired landscape/portrait orientation
-Full color, grayscale, or grayscale color table
-Specify # of colors
-Change source image format
-Add border after processing to fill specified width/height
-Reduce to maximum dpi
+Supported input sources:
-Single folder of images
-Single .zip/.cbz
-Single .rar/.cbr (Note: Must have compatible unrar program installed on your system. See readme for details)
-Single .pdf
-A folder/archive containing any number of the above items, allowing you to process an entire manga series with one command.
+Supported input image formats:
-Pretty much anything that ImageMagick supports. It’s safe to assume that all major image formats are supported: .jpg, .bmp, .gif, .png, etc…
+Supported output formats:
-Folder of images (any image format supported by ImageMagick should be ok)
-.zip/.cbz
-.rar/.cbr (Note: Must have compatible rar program installed on your system. See readme for details)
-.pdf (including right-to-left page ordering)
-.epub (including right-to-left page ordering)
+Binding
-Binding allows you to combine multiple input sources into a single output
-Three ways to use binding:
-Auto bind chapters into volumes based on interpreted volume-chapter info
-Auto bind groups of a specified size
-Create a bind file to manually specify which chapters to bind into a single volume
+Auto split landscape 2-page scans
-Can detect whether a landscape scan contains two separate pages and split them accordingly
-Tries not to split landscape 2-page scans where the two pages form one big image
+Volume-chapter interpretation:
-Automatically interpret volume-chapter info from sources
-Bind chapters of the same volume (and create a fake volume binding for the latest chapters not yet released in tankobon)
-Supports a large variety of source organization, including:
-Nested folders/archives/pdfs
-Determine volume from parent hierarchy
-Determine volume from observed bounds of a volume’s chapters
-Detect special chapters and a/b chapters
-Conflict resolution (both automatic and manual) when multiple sources map to the same volume-chapter
+Generate a settings file for a variety of ereader devices
-Optimal settings stored for many of the top ereader devices:
-Amazon: kdx, k3, k2, k1
-Apple: ipad
-B&N: nook
-Sony: prs-900, prs-700, prs-650, prs-600, prs-505, prs-500, prs-300
-iRex: iliad, dr800, dr1000
-Ectaco: jb, jbl
-Kobo: kobo2, kobo1
-Can also generate a default settings file if Canti doesn’t know the optimal settings for your particular ereader device
-Any setting can be changed by the user to meet his/her needs
+Multithreading:
-Mixed folder/image-level multithreading, allowing you to process multiple folders and images in parallel
-Automatically determines the number of threads to use based on detected cpu cores and workload (you can also manually specify the number of threads)
+Other operations:
-Organize: organizes manga collection by interpreting volume-chapter info without processing images
-Analyze manga collection: returns statistics such as # of file types, # scans, file space usage, etc.
-Analyze manga folder: returns statistics such as width, height, and dpi of each image in the folder
-Create Canti batch file (available in the CLI only): creates a script to process your entire manga collection using Canti
+Job management (available in the GUI only):
-Save a job so that you can run it again later (useful if you have added new chapters to a series)

Read the included readme.txt for installation and usage instructions.

Enjoy and let me know if it works for you

(visit http://www.bitcake.com/ for latest version, now available with a gui!)
(...seriously, don't download the version below, check http://www.bitcake.com/ for the latest version. The current view count for this old version is 119, I don't want to see that go up :P)

-Update-
Removed the old version attached in this post since the view count had reached 564 even though I had posted to stop downloading this old version at 119 views (mobileread). The versions of Canti in this thread (especially the very first one I just removed) are nothing compared to the latest version at bitcake.com.

Last edited by lilman; 05-30-2011 at 02:36 PM.
lilman is offline   Reply With Quote
Old 04-01-2010, 04:29 PM   #2
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Updated to version 1.1. Added color support and you can specify number of colors. So now this can be used to prepare manga for the iPad.

Also, I got tired of calling this "my manga processing program" so I gave it a name: Canti, after the Medical Mechanica robot from FLCL. If you don't know what I'm talking about, don't worry about it... it's from a manga so I thought it was appropriate.

You'll notice the "KDX" in the filename. That is because the .properties file is already tailored to the Kindle DX. I'm going to post the program in the iPad forum with the .properties file customized for them.

Anyway enjoy and let me know if it works for you

-Update-
Oops, in adding color support I accidentally broke grayscale. I've removed the download link for v1.1. Download the latest version below instead.

Last edited by lilman; 04-08-2010 at 06:21 PM.
lilman is offline   Reply With Quote
Old 04-08-2010, 06:19 PM   #3
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Slight update to fix grayscale not working in version 1.1. The problem was a single character of code missing... *sigh*. Anyway, sorry for the bug. If you downloaded v1.1, delete it and download 1.1a instead.
Attached Files
File Type: zip Canti_v1.1a_KDX.zip (21.8 KB, 313 views)
lilman is offline   Reply With Quote
Old 04-12-2010, 06:24 PM   #4
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Just a heads up v1.2 will be released soon. The coding is already done, I just need to test it more to make sure there are no bugs.

This will probably be the last release since I don't know what else to put into the program. I may eventually make a gui, but I truly do hate making java gui's. Well, look forward to Canti v1.2, should be arriving tomorrow.

Last edited by lilman; 04-13-2010 at 06:07 PM.
lilman is offline   Reply With Quote
Old 04-13-2010, 06:06 PM   #5
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Ok, that was harder than I thought. I had to rewrite most of the main code to get binding working right. Here's probably the final release of Canti, v1.2.

New to version 1.2:
-Binding
Binding allows you to easily combine chapters into volumes while still keeping your original manga chapter folders intact.
See the included bind.txt for instructions on setting up a bind file.
-Can specify zip format (either .zip or .cbz)
I figured some comic programs might like the .cbz extension better. This option is set in the .properties file.
-Changed command line parameters
I changed some of the command line parameters, so run 'java -jar ConvertManga.jar' to see the list of new commands.
-Other random tweaks
I rewrote a good chunk of the code. Lots of error handling and other nice stuff. For example, let's say you already converted a lot of manga but you added a few more chapters to your collection. The program is smart enough not to reprocess manga that has already been processed (a big timesaver). Also, if you already processed your manga but decide that you wanted it to be pdffed or zipped, just turn those options on and run the program again. It knows not to reprocess the manga again... it will go straight to pdffing and/or zipping.

Enjoy and let me know if it works for you
Attached Files
File Type: zip Canti_v1.2_KDX.zip (25.7 KB, 283 views)

Last edited by lilman; 04-13-2010 at 06:43 PM.
lilman is offline   Reply With Quote
Old 04-18-2010, 04:47 PM   #6
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Small update. If you downloaded v1.2 you can just overwrite the .jar and .properties file with these. No need to reprocess your manga.

And if you already processed your manga but now want to use auto-binding, just turn on auto-binding and run the program again... it won't waste time reprocessing the manga, it will go straight to the binding.

New to version 1.3:
-Auto-Binding
Same as binding, except you don't create a bind file. Instead, you just specify a single size for all bindings (for example, all bindings could have 10 folders in them).
This is set up in the .properties file.

Enjoy
Attached Files
File Type: zip Canti_v1.3_KDX.zip (25.5 KB, 246 views)

Last edited by lilman; 04-18-2010 at 04:50 PM.
lilman is offline   Reply With Quote
Old 04-24-2010, 12:41 PM   #7
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Mostly a release for iPad owners, but also a minor bug fix (honestly, Kindle owners can just skip this release).

New to version 1.4:
-Epub
This is in BETA! I do not have an iPad and so I have no idea how this will look on one.
I wanted to add epub support so that you could add your manga to your iTunes library, making it easier to sync (and also so you could view it in iBooks).
This is my first experience with epubs and I wrote the code from reading epub tutorials online. A lot of this is guess work and therefore will most likely not work perfectly.
If you have any epub experience and know how to make these epubs work better on the ipad, please pm me on mobileread.com (my username is lilman). Thanks!
This is set up in the .properties file.
Note that there is no binding support for epubs yet.
-Bug fix: Fixed changing page_filename_length after processing manga will correctly rename image filenames when binding (I know, you probably would have never noticed this, but I did and it bothered me :P)

Enjoy and let me know if it works for you

-Edit-
v1.4 code removed due to bug. Download latest version below V

Last edited by lilman; 04-25-2010 at 08:33 AM.
lilman is offline   Reply With Quote
Old 04-25-2010, 08:32 AM   #8
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Slight bug fix, sorry about that. If you downloaded v1.4, overwrite it with this version.

New to version 1.4a:
Fixed an error in the toc.ncx file of the epubs.
Attached Files
File Type: zip Canti_v1.4a_KDX.zip (32.3 KB, 259 views)
lilman is offline   Reply With Quote
Old 04-30-2010, 05:46 PM   #9
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
v1.5 coming soon. Here's what I hope to have included:
-Single folder mode
Instead of batch processing a collection of organized manga folders, you can specify a single folder to process. I already finished the coding for this and it works transparent to the user. When you specify parent_folder it checks whether there are subfolders (batch mode) or not (single folder mode) and then continues working accordingly.
-Binding for epub
Almost done with the coding for this, not that Kindle users should care about epubs.
-Change some command line options
I think I'll make num_chars_keep_suffix optional rather than mandatory. It's a feature I always use myself but others may not find it useful depending on how you organize your manga. I haven't started the coding this but it shouldn't take too long.
-Edit-
Never mind about removing num_chars_keep_suffix as I forgot about special release chapters (like when a manga has a chapter 5.5). num_chars_keep_suffix allows you to keep these special numberings.

v1.5 should be released in the next 1-3 days.

If you guys have any requests let me know. I basically just program whatever I would like to use personally, or whatever comes to mind, but if you have a particular feature you would like I'll conisder adding it in.

-Update-
Slight release delay since my parents suprised me with an iPad and I've been busy playing with it. v1.5 should be released in 1-2 days (so by Tuesday).

Last edited by lilman; 05-02-2010 at 05:50 PM.
lilman is offline   Reply With Quote
Old 05-03-2010, 09:20 AM   #10
robb01
Connoisseur
robb01 began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Oct 2008
Device: Kindle
Going to try this out, looks cool
robb01 is offline   Reply With Quote
Old 05-04-2010, 10:46 AM   #11
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Here's Canti v1.5

New to version 1.5:
-Single folder mode
Instead of batch processing a collection of organized manga folders, you can specify a single folder to process.
This works transparent to the user. When you specify -parent_folder it checks whether there are subfolders (batch mode) or not (single folder mode) and then continues working accordingly.
-Full size images
Instead of specifying a width and height to resize images to, now you can leave the images the same size as the source images.
I recommend using this setting for the iPad since the larger images are better to zoom on, and the iPad makes it easy to zoom on images.
This is set up in the .properties file by setting "width" and/or "height" to -1
-Can disable auto rotate for portrait images (not recommended for Kindle users)
Before I had portrait images automatically rotated to landscape mode by default, but now you can turn this off if you want.
This is set up in the .properties file.
-Binding for epub (for iPad users)
Now you can bind multiple manga folders into a single epub.
Note that epub is still in BETA. I can sync the epubs using iTunes, but I can't get them to appear in iBooks. If you know how to fix this please pm me on mobileread.com (username "lilman")

Enjoy and let me know if it works for you
Attached Files
File Type: zip Canti_v1.5_KDX.zip (34.2 KB, 231 views)

Last edited by lilman; 05-04-2010 at 11:32 AM.
lilman is offline   Reply With Quote
Old 05-11-2010, 05:25 PM   #12
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Here's Canti v1.6

With this latest version, you only have to specify two values at runtime: -parent_folder and -title. Everything else is optional

New to version 1.6:
-Auto sense suffix
By not setting (or setting to -1) the -num_chars_keep_suffix value, the program will attempt to automatically determine the suffixes of your manga folders.
Note that each manga folder must end with a number such as 1, 001, 1.11, or 001.11 for this to work.
-Output base folder
Instead of specifying -output_folder at runtime, can specify an output base folder in the .properties file.
If the value is set to "default", then the output_base_folder will be: one directory up from -parent_folder/OUT/
If this value is set to [path to output base folder], then the output_base_folder will be: [path to output base folder]/[manga title]/
Acceptable values: default, [path to output base folder]
For Linux systems, [path to output base folder] should be something like /home/[username]/Manga/IPAD/
For Windows systems, [path to output base folder] should be something like C:\\Manga\\IPAD\\
Note that [path to output base folder] cannot contain any spaces.
-ComicZeal naming (for iPad users with ComicZeal only)
For iPad users who read manga using ComicZeal (like me), this option uses a special ComicZeal naming scheme for the zip archives.
It places the title of the manga at the beginning of the filename, followed by a ~ (for example: School_Rumble~School_Rumble_-_Ch.001.cbz).
When ComicZeal imports these specially named files it will automatically sort the manga into the correct collections.
This is set up in the .properties file.

Enjoy and let me know if it works for you
Attached Files
File Type: zip Canti_v1.6_KDX.zip (36.5 KB, 254 views)

Last edited by lilman; 05-11-2010 at 05:35 PM.
lilman is offline   Reply With Quote
Old 05-13-2010, 04:05 AM   #13
chalimac
Member
chalimac began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2009
Device: none
Cool. Any chance of a Kindle 2 setting?
chalimac is offline   Reply With Quote
Old 05-13-2010, 07:06 AM   #14
bimboles
Junior Member
bimboles began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2010
Device: Kindle
Thank you for your hard work on this. I am finding that it works really well on my DX.
bimboles is offline   Reply With Quote
Old 05-13-2010, 10:06 AM   #15
lilman
Addict
lilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-bookslilman has learned how to read e-books
 
lilman's Avatar
 
Posts: 326
Karma: 960
Join Date: Jul 2009
Location: Florida, US
Device: Kindle DX, iPad
Quote:
Originally Posted by chalimac View Post
Cool. Any chance of a Kindle 2 setting?
Read the comments in the .properties file, it lists the settings you should use for the K2. You will just have to change width to 600, height to 800, and max dpi to 167. I have never used a K2 but I heard that pdf images don't come up as clear as those rendered by the image viewer, so you may want to test out both pdf and image manga and see which works best for you. Also, the K2 supports zips (turned off by default in the .properties file) so you could turn that option on if you want.

-Update-
Canti v1.71 and up has default K2 settings included. Just run:
java -jar ConvertManga.jar -create_properties k2

And for KDX users:
java -jar ConvertManga.jar -create_properties kdx

Last edited by lilman; 06-13-2010 at 02:10 PM.
lilman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Canti: Manga Processing Program lilman Workshop 42 04-14-2011 06:52 PM
Canti: Manga Processing Program lilman Apple Devices 55 04-14-2011 05:50 PM
Classic Canti: Manga Processing Program lilman Barnes & Noble NOOK 4 07-14-2010 04:45 PM
Canti: Manga Processing Program lilman Sony Reader Dev Corner 1 07-14-2010 04:43 PM
Best for manga eqzitara Which one should I buy? 27 11-19-2007 07:58 AM


All times are GMT -4. The time now is 11:50 AM.


MobileRead.com is a privately owned, operated and funded community.