Closed bikerr closed 2 years ago
@bikerr There's not enough information about your environment to reliably reproduce the issue.
Which version of Thumbnailator, TwelveMonkeys and Java are you using?
I've tried with 0.4.16, 3.8.1, 8 respectively, and have been unable to reproduce this using the image provided.
What are the types for src
and dst
? Are they String
or File
?
What is the value for dst
? Does it end with a "jpg" extension?
@coobird
src and dst are both end with jpg
File
The environment is :
thumbnailator:0.4.16
twelvemonkeys:3.3
java version "1.8.0_321"
@bikerr OK, I was able to reproduce it using TwelveMonkeys ImageIO 3.3.
This appears to be an issue with TwelveMonkeys ImageIO library rather than Thumbnailator.
In fact, seems like this behavior is not triggered in TwelveMonkeys ImageIO 3.4, so maybe you should consider updating your dependencies, if possible. (As I mentioned earlier, the latest version 3.8.1 also didn't exhibit this behavior.)
I'm closing this issue as it's not an issue with Thumbnailator.
An error is reported when I execute this code with the image