/usr/bin/convert my.jpg -resize 1280x720\> output.jpg
But the following does not resize the photo:
Code: Select all
String[] command = {"/usr/bin/convert", "my.jpg", "-resize", "1280x720\\>", "output.jpg"};
ProcessBuilder pb = new ProcessBuilder(command);
pb.redirectErrorStream(true);
Process process = pb.start();
Using:
Version: ImageMagick 6.8.9-5 Q16 x86_64 2014-07-25
Java SE Runtime Environment (build 1.7.0_51-b13)
Mac OSX
Any thoughts? Thanks.