I want to provide my clients the ability to resize and watermark images in an application developed with Java. After searching the Internet, I have provided the im4java
library with my application by simply adding it. I saw different articles and got this code:
try
{
IMOperation op = new IMOperation();
op.addImage("d:\\abc.jpg");
op.addImage("d:\\def.jpg");
new ConvertCmd().run(op);
}
catch (IOException | InterruptedException | IM4JavaException e)
{
System.out.println(e.toString());
}
it gives exception as
org.im4java.core.CommandException: org.im4java.core.CommandException: Invalid Parameter - d:\def.jpg
why is that so?
1) Do I have to install any external library on my PC other than just adding im4java library to my application?
2) If I do have to install some kind of other library on my PC then will my clients have to install it too on their machine as well or is their any solution?
In this question here How do you resize an image using im4java?, an answer says I need an interface for this, What does this means? And if I somehow install this interface on my machine, what my clients will have to do? Can't this be embedded like H2 database so my clients don't have to install anything else other than my software?