|
@@ -128,19 +128,4 @@ public class MaterialImageInfoServiceImpl extends ServiceImpl<MaterialImageInfoM
|
|
|
return materialImageInfoMapper.getCodeList();
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- File picture = new File("D:\\file\\FDXS0435JCY t5.jpg");
|
|
|
- BufferedImage sourceImg = null;
|
|
|
- try {
|
|
|
- sourceImg = ImageIO.read(new FileInputStream(picture));
|
|
|
- } catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- System.out.println(String.format("%.1f", picture.length() / 1024.0));// 源图大小
|
|
|
- System.out.println("宽" + sourceImg.getWidth()); // 源图宽度
|
|
|
- System.out.println("高" + sourceImg.getHeight()); // 源图高度
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
}
|