Commit c2dc43b6 by 王祖波

初始化图像插件

parent 86b43c40
......@@ -43,6 +43,10 @@ public class ImageCombined {
private static final String STORE_NAME = "门店CCA";
private static final String GUIDE_NAME = "宇智222为您推荐";
private static final String OUTPUT_PATH = "/Users/wang/Downloads/output_image3.jpg";
static {
ImageIO.scanForPlugins(); // 初始化图像插件
}
public static void main(String[] args) throws Exception{
BufferedImage largeImage = loadImageWithCache(LARGE_IMAGE_URL);
BufferedImage qrCodeImage = ImageIO.read(new URL(QR_CODE_URL));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment