|
@@ -610,8 +610,8 @@ public class CommonUtil {
|
|
ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
|
|
ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
|
|
BufferedImage originalImage = ImageIO.read(bais);
|
|
BufferedImage originalImage = ImageIO.read(bais);
|
|
long sizeLimit = 102400; //358KB
|
|
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);
|
|
Image scaledImage = originalImage.getScaledInstance(width, height, Image.SCALE_SMOOTH);
|
|
BufferedImage resizedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
|
|
BufferedImage resizedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
|
|
resizedImage.getGraphics().drawImage(scaledImage, 0, 0, null);
|
|
resizedImage.getGraphics().drawImage(scaledImage, 0, 0, null);
|