View Single Post
Old 10-04-2010, 07:02 PM   #71
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
Note: There were a few people asking questions above this post, so I will answer each person's questions in a separate post.

Quote:
Originally Posted by squall_dc View Post
I just have a few issues:

- Is there an option to add white borders to an image to fill it to the target size (like on Mangle, so the image is always eg 600x800)?
That option currently does not exist, but luckily I wrote the code to add borders to an image months ago (I just never used it). I will add this option in the next release.

Quote:
Originally Posted by squall_dc View Post
- For the landscape splitting, would it be easy to add an option to extend the width by a user specified amount (ie. a safe zone). So eg if the landscape image is 1000 x 800, and the auto split detection finds a split at 400, could the resultant images be (0, 0) -> (400 + safezone, 800) (1st image) and (400-safezone, 0) -> (1000, 800) (2nd image).
ie. there will be some overlap in both images
Yes, adding in that option would be easy. I will include it in the next update.

Quote:
Originally Posted by squall_dc View Post
- For the suffix, I get a crash if I turn on "use_original_filenames". If I don't turn it on, I don't get a crash, but the folder names are broken.

eg. C:\My Manga Vol 1\Chapter 01
C:\My Manga Vol 1\Chapter 02
C:\My Manga Vol 1\Chapter 03a
C:\My Manga Vol 1\Chapter 03b

Ends up like:

My_Manga_-_Ch
My_Manga_-_Ch.1
My_Manga_-_Ch.2

Crash mentioned above:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at manga.CMFileObject.<init>(CMFileObject.java:49)
at manga.ConvertManga.main(ConvertManga.java:1397)
I will look into use_original_filenames crashing. Should be a simple bug to fix.

As for the auto sense suffix not naming things right, that's because it is only designed to handle numbers at the end of a filename. That's why it could correctly handle "01"->"1" and "02"->"2", but when it saw something like "03b" it stopped trying to figure out the suffix as soon as it saw the "b". In your case you will want to use use_original_filenames, so I'll make sure to get it working properly.

Quote:
Originally Posted by squall_dc View Post
- also I can't find the "bind.txt" file mentioned in the readme.txt.
The bind.txt file is something you make yourself and place into parent_folder. The instructions explaining how to make one is included in the readme.

Quote:
Originally Posted by squall_dc View Post
- Not sure if it's Canti or not, but while converting to png, Image Magik sometimes randomly crashes (always on a landscape image), if I delete the temp files and run the conversion again, sometimes it works, but mostly still crashes.
Actual image processing is handled by ImageMagick, so the problem shouldn't be Canti. I don't know what to tell you... maybe convert to another image format?

Quote:
Originally Posted by squall_dc View Post
Sorry for the long post, and Thanks for the wonderful program. Currently I'm using Canti initially and then Mangle to do the final conversion (which add's borders). But would love to use Canti alone.
You're welcome. With the next update you should be able to use Canti alone
lilman is offline   Reply With Quote