public static void compressPic(){ try { Thumbnails.of(new File("/home/y/my_temp/ydbg-xy-pic").listFiles()) .size(94, 100) .outputFormat("jpg") .toFiles(Rename.PREFIX_DOT_THUMBNAIL); } catch (IOException ex) { Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex); } }
时间: 2024-10-10 10:23:56