osx - Using Imagemajick in java using OS X -



osx - Using Imagemajick in java using OS X -

i have imagemajick installed in os x using macports. when run convert command command line (bash) able convert film jpg. when run via java process builder no such output. gives. next java code utilize execute command.

private void run(string[] args) { seek { processbuilder pb = new processbuilder(args); process p = pb.start(); p.waitfor(); inputstream = p.getinputstream(); inputstreamreader isr = new inputstreamreader(is); bufferedreader br = new bufferedreader(isr); string line; while ((line = br.readline()) != null) { system.out.println(line); } = p.geterrorstream(); isr = new inputstreamreader(is); br = new bufferedreader(isr); while ((line = br.readline()) != null) { system.err.println(line); } } grab (exception e) { e.printstacktrace(); } }

the string passed in /usr/local/bin/convert /users/me/videos/capture-20110708-220220.mpg[0] /users/me/videos/out0.jpg

you might seek redirecterrorstream(), shown in related example, see diagnostic output.

java osx imagemagick

Comments

Popular posts from this blog

ios - Fragment Shader GLSL for texture, color and texture/color -

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -