View Single Post
Old 10-07-2010, 05:54 PM   #86
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 jozicka View Post
unrar - the same issue
Can you post the path to rar.exe on your system, and make sure you use exact capitalization. For example, on my Windows XP machine it is:
C:\Program Files\Winrar\Rar.exe

Quote:
Originally Posted by jozicka View Post
jpg files - for some time running, but again error.

Copying files to new folders...
Converting all manga scans using ImageMagick...
Processing folder: Asterix1...
Exception in thread "main" java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(Unkn own Source)
at java.lang.Double.parseDouble(Unknown Source)
at common.image.ImageMagick.getImageData(ImageMagick. java:270)
at common.image.ImageMagick.processImage(ImageMagick. java:150)
at manga.ConvertManga.main(ConvertManga.java:1662)
Damn, when I tested the Asterix test case you sent me it worked perfectly in Linux. I will have to do testing in Windows XP to see if it is a Windows issue.

Quote:
Originally Posted by jozicka View Post
I was thinking - may be if you prepare some directory with all needed tools: rar, java, imagemagic and zip it and put it to same megaupload, so we can just extract to C:\ drive and run it, it should avoid issue with different versions..

something like \convertmanga\
inside folders TOOLS (with all needed tools)
then folder SOURCE
then folder OUTPUT
then several canti properties, so user will rename the one he needs.
I don't want to do that. Users should be able to download the latest version of any of Canti's helper programs without compatiblity issues. If I make a package with all the helper programs, the user may be using outdated versions that run slower or produce lower quality output than their newer counterparts. For instance, I just updated my ImageMagick the other day cause there had been some nice updates since the last time I installed it.

Quote:
Originally Posted by jozicka View Post
and script convertmanga.bat with inside

FOR /f "tokens=*" %%G IN ('DIR /B c:\convertmanga\SOURCE\*.*') DO (SET FILE=%%G) & CALL :CONV1
PAUSE
goto :EOF

:CONV1
java -jar Canti.jar -parent_folder "C:\\convertmanga\\%file%\\" -title "%file%" -output_folder "c:\\convertmanga\\OUTPUT\\"
goto :EOF

So users will only rename canti properties (which they want) and put cbr files to source and run bat script?
The way Canti.properties works now is easier than your suggestion. The user specifies his/her ereader device and Canti makes a .properties file especially for that device (and also finds ImageMagick on the user's system, which can vary among systems). If the user wants more than one .properties file because they have more than one ereader, he/she can give it a unique name and specify -properties [path to .properties file] in the command line at runtime.

Quote:
Originally Posted by jozicka View Post
Maybe in the canti properties can be a path for rar to this c:\\convertmanga\\TOOLS\\unrar.exe
If I still can't get rar support working for you in the next update, I will add an option to specify its location in the .properties file (similar to ImageMagick).
lilman is offline   Reply With Quote