fix: starter-fastdfs 生成水印图问题

This commit is contained in:
Wizzercn 2019-03-21 10:10:53 +08:00
parent fc0e31d527
commit 6ac6132dc0

View File

@ -336,7 +336,7 @@ public class FastdfsService {
ByteArrayOutputStream thumbOs = new ByteArrayOutputStream();
ByteArrayOutputStream os = new ByteArrayOutputStream();
try {
BufferedImage bufferedImage = Images.addWatermark(image, watermark, opacity, pos, margin);
BufferedImage bufferedImage = Images.addWatermark(is, waterIs, opacity, pos, margin);
Images.write(bufferedImage, ext, os);
byte[] waterFile = os.toByteArray();
trackerServer = fastDfsClientPool.borrowObject();