ImageIO.read() takes about 13000ms on 5.XMB Image File. How can I improve this performance?

Viewed 338

I want to read a File to a BufferedImage as I want to resize my image. For the resize operation, I have to get a BufferedImage.

So, I used ImageIO.read(file), but it takes over 10000ms when file's size is over 5MB. This is my code:

...

public BufferedImage change(File file) {
    return ImageIO.read(file);
}

...

I don't understand why it takes so much time. And I want to know how to improve it's performance...

0 Answers
Related