It's not a secret anymore!
The moose likes I/O and Streams and the fly likes Image to BufferedImage converter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Image to BufferedImage converter" Watch "Image to BufferedImage converter" New topic

Image to BufferedImage converter

hadzrul hashim

Joined: Jan 03, 2007
Posts: 6
Hi all,

I found this code somewhere on Internet. I use this code in my web application. No problem when using this BUT it slow on rendering the image. How do I increase the performance? Is there a way to enhance this method?

Here is the code: (for someone who need it, just put to your application and run it)

Joe Ess

Joined: Oct 29, 2001
Posts: 9168

Define "slow". I've used similar code to generate on-the-fly thumbnails for my personal web site and it worked fine. Have you profiled your app to make sure this is where the bottleneck is? Is your hardware maxed out (i.e. the CPU or disk utilization is 100%)?
Unfortunately, image processing in Java is pretty much a black box. There isn't much we can do programmatically to influence its behavior.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Image to BufferedImage converter
It's not a secret anymore!