This batch is running without errors and the image looks correct.
Also when trying your sample code Test1 I also get errors but they look different:
1. Testing convert ...
org.im4java.core.CommandException: org.im4java.core.CommandException: Unzul„ssiger Parameter - "images\tulip
at org.im4java.core.ImageCommand.run(ImageCommand.java:215)
at org.im4java.test.TestCase1.run(TestCase1.java:80)
at org.im4java.test.AbstractTestCase.runTest(AbstractTestCase.java:74)
at org.im4java.test.TestCase1.main(TestCase1.java:55)
Caused by: org.im4java.core.CommandException: Unzul„ssiger Parameter - "images\tulip
at org.im4java.core.ImageCommand.finished(ImageCommand.java:249)
at org.im4java.process.ProcessStarter.run(ProcessStarter.java:314)
at org.im4java.core.ImageCommand.run(ImageCommand.java:211)
... 3 more
I hope you can help me, because I need it for work.
Thanks in advance.
greetz
r0bb3n
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
im4java will search for convert.exe, convert.cmd and convert.bat in C:\Programs\…. Please verify, that your convert-executable is exactly in the directory which you pass to setGlobalSearchPath.
The batch-file might work because you probably have the convert-executable somewhere else in your path.
The test doesn't work because the tests don't set the searchpath internally. To use the tests, you should set IM4JAVA_TOOLPATH. The program fails because it uses a Windows-utility also called convert (but which expects different parameters).
Bernhard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
when I try to crop an image with this code:
I get the following Exception
The Batch looks like this:
This batch is running without errors and the image looks correct.
Also when trying your sample code Test1 I also get errors but they look different:
I hope you can help me, because I need it for work.
Thanks in advance.
greetz
r0bb3n
Hi r0bb3n,
im4java will search for convert.exe, convert.cmd and convert.bat in C:\Programs\…. Please verify, that your convert-executable is exactly in the directory which you pass to setGlobalSearchPath.
The batch-file might work because you probably have the convert-executable somewhere else in your path.
The test doesn't work because the tests don't set the searchpath internally. To use the tests, you should set IM4JAVA_TOOLPATH. The program fails because it uses a Windows-utility also called convert (but which expects different parameters).
Bernhard