convert hang up by java runtime exec

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Add -debug all right after 'convert' on your command line. It will help us determine where the process is hanging.
siemen450

Re: convert hang up by java runtime exec

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
Post Reply