Ver Fonte

计量-中间计量申请草图文件压缩2

qianxb há 2 meses atrás
pai
commit
1550a445c6

+ 2 - 2
blade-common/src/main/java/org/springblade/common/utils/CommonUtil.java

@@ -610,8 +610,8 @@ public class CommonUtil {
         ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
         BufferedImage originalImage = ImageIO.read(bais);
         long sizeLimit = 102400; //358KB
-        int width = 768;
-        int height = 200;
+        int width = 1500;
+        int height = 400;
         Image scaledImage = originalImage.getScaledInstance(width, height, Image.SCALE_SMOOTH);
         BufferedImage resizedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
         resizedImage.getGraphics().drawImage(scaledImage, 0, 0, null);