• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Image to BufferedImage converter

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)

 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic