mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复图片操作未调用flush导致资源未释放问题
This commit is contained in:
@@ -86,6 +86,7 @@ public class QrImage extends BufferedImage {
|
||||
imgWidth = logoImg.getWidth(null) * imgHeight / logoImg.getHeight(null);
|
||||
}
|
||||
|
||||
// 原图片上直接绘制水印
|
||||
Img.from(this).pressImage(//
|
||||
Img.from(logoImg).round(config.imgRound).getImg(), // 圆角
|
||||
new Rectangle(imgWidth, imgHeight), // 位置
|
||||
|
Reference in New Issue
Block a user