我是直接放在项目中
生产出新的图片

String basePath=Thread.currentThread().getContextClassLoader().getResource("").getPath();
basePath = URLDecoder.decode(basePath,"utf8");
Thumbnails.of(new File("D://image//1.jpg"))
.size(200, 200).watermark(Positions.BOTTOM_RIGHT,
ImageIO.read(new File(basePath+"/2.jpg")), 0.25f).outputQuality(0.8f)
.toFile("D://image//3.jpg");