problem regarding convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
siemen450

problem regarding convert

Post by siemen450 »

Hi,

Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("convert -density 150 /dir1/dir2/1.pdf -resize 90% -trim /dir3/dir/4.jpg");
int exitVal = process.waitFor();

i m using this code to convert. its not saying any error or its not producing result also.

Could u plz help me? how can i do this?

Thank You.

Regds.
siemen
teetanne

Re: problem regarding convert

Post by teetanne »

Dear siemen,

first try to call your stmt (convert -density 150 /dir1/dir2/1.pdf -resize 90% -trim /dir3/dir/4.jpg) and review the result. Most possible reason would be a missing path. A other reason could be the "process.waitFor();" stmt. I am not sure but I think there is no return code to wait for.

More information about your OS and IM would be nice.

greetings TeeTanne
Post Reply