| | |
| | | System.out.println("------------ END 初始化ImageMagickPath -------------"); |
| | | } else if (OSinfo.isLinux()) { |
| | | System.out.println("------------ START 初始化ImageMagickPath -------------"); |
| | | // ProcessStarter.setGlobalSearchPath("D:/im4java/ImageMagick-7.1.1-Q16-HDRI"); |
| | | |
| | | System.out.println("------------ END 初始化ImageMagickPath -------------"); |
| | | } |
| | | } |
| | |
| | | * @throws InterruptedException |
| | | * @throws IM4JavaException |
| | | */ |
| | | public void sampleImg(String inImgPath,String outImgPath,Integer width,Integer height,String editType) throws IOException, InterruptedException, IM4JavaException{ |
| | | public static void sampleImg(String inImgPath,String outImgPath,Integer width,Integer height,String editType) throws IOException, InterruptedException, IM4JavaException{ |
| | | ConvertCmd cmd = new ConvertCmd(); |
| | | IMOperation operation = new IMOperation(); |
| | | operation.addImage(inImgPath); |