Re: Upload and Resize Image

Bernard Bernstein <[email protected]> Thu, 15 Jun 2006 09:37:13 -0400
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>

On Jun 10, 2006, at 11:11 AM, Mattias Jiderhamn wrote:

> At 2006-06-09 21:51, Thomas Moorer wrote:
>> Please totally disregard this.... The main manipulation calls are  
>> with 3rd party libraries. If I'd have read the page I'd know that  
>> - DUH! (Oh well it's Friday).
>>
>> BTW, has anyone done something like this in a Servlet?
>

We do this in a Servlet but we don't have a standalone library that I  
can send you easily. Here are some keywords to google:

BufferedImage AffineTransformOp.TYPE_BILINEAR IndexColorModel ImageIO

Here are some results I got from those:

A very informative article from sun:
http://java.sun.com/developer/technicalArticles/GUI/java2d/ 
java2dpart2.html

The source for a library that might do what you want, or at least be  
helpful sample code:
http://www.cse.cuhk.edu.hk/~miplab/discovir/image_processing/ 
DiscovirImage.java


Bernie