ke
2024-05-15 57d2bd4cf146db02abe2182fc5242a3c06cbdd74
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/skPanorama/utils/Img4JavaUtil.java
@@ -31,7 +31,7 @@
         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 -------------");
      }
   }
@@ -298,7 +298,7 @@
    * @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);
@@ -410,7 +410,7 @@
    * @throws IOException
    * @throws InterruptedException
    * @throws IM4JavaException
    */
   public static void main(String[] args) throws IOException, InterruptedException, IM4JavaException{
      String inImgPath = "D:\\Documents\\Pictures\\1.jpg";
      String outImgPath = "D:\\Documents\\Pictures\\2.jpg";
@@ -433,6 +433,6 @@
//        test.scaleImg(inImgPath,outImgPath+"缩略图scale.jpg",100,null);
      // 自动中心化裁剪
//        test.cropCenterImg(inImgPath,outImgPath+"中心.jpg",400,300);
   }
    */
}