The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 The Perils of Image.getScaledInstance()
Subject:  Great article... retitle it! :-)
Date:  2007-04-22 13:00:03
From:  kbern


I just added a comment to the RFC bug you mentioned above, indicating that adding specific filters would be a huge win. Also, wanted to thank you for the great advise in this article "The Perils of Image.getScaledInstance()" (whose title doesn't do it justice, btw, since it's got tons of value in terms of getting better quality reductions even out of drawImage()

RFC Comment:
If you look at the bvdwolf link about, you'll see that the Lanczos filter is far superior in many contexts, especially downsizing. I am downsizing many images as part of a web application and have been using both ImageMagick (for batch conversions of existing images) as well as JDK (for conversion of uploaded images on the fly). I can tell you that the results from ImageMagick with the Lanczos filter blow away anything I can get out of the JDK, even after following the great advise in Chris Campbell's article "The Perils of Image.getScaledInstance() (whose title doesn't do it justice, btw, since it's got tons of value in terms of getting better quality reductions even out of drawImage(): http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

 Feed java.net RSS Feeds