Closed lhfwudi closed 2 months ago
@lhfwudi, the stacktrace shows that Thumbnailator is not being called. The exception is happening on this line:
BufferedImage originalImage = ImageIO.read(new File(srcFile));
And inspecting closer, Java thinks it's a JPEG file even though it has a PNG extension. Therefore, it seems like your image file is mislabeled with a wrong extension. This is not an issue with Thumbnailator as it's not being invoked.
Why do png thumbnails report exceptions?
May I ask what causes it? Or is the thumbnailator not supported?