先转一次byte数组 再处理
byte[] bigContent =file.getBytes(); Thumbnails.of(new ByteArrayInputStream(bigContent)).scale(1f).outputQuality(0.3f).toFile(fileThu);
使用Thumbnails进行图片压缩,报“No suitable ImageReader found for source data”异常处理。
发布时间 2023-06-12 09:24:13作者: 笑~笑