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?
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!