coobird / thumbnailator

Thumbnailator - a thumbnail generation library for Java
MIT License
5.14k stars 784 forks source link

Thumbnailator using Image instead of BufferedImage as input #141

Open FranPrin opened 5 years ago

FranPrin commented 5 years ago

I have an Image in java and I want to use the Thumbnailator class to resize it.

But it seems that the Thumbnailator class does not accept Images and has no method for converting Images to BufferedImages (which are accepted instead).

I thought that I probably am missing something because this seems like an odd predicament that many people would likely find. I could write my own method to convert it to a BufferedImage but I first thought to ask if there is a way the Thumbnailator can do so?

Thank you very much!