Re: sizing down an uploaded photo
Chuck Hirstius <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Scott, Depending on what version you are using, The plain old Image object has a method getScaledInstance() that takes x res and y res arguments and filtering hints (performance vs. quality) and it returns an Image object sized as requested. I do not know if highest quality is of concern, but this may do the trick for you. I use it in an application I wrote that downloads pictures from a digital camera (the cameras we have are cheap things that only take pictures at 1 resolution - 1280x960) and resizes them before uploading them to a centralized location. "Carter, Scott" <[email protected]> Sent by: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[email protected]> 05/06/2003 05:03 PM Please respond to "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." To: [email protected] cc: Subject: sizing down an uploaded photo I am hoping that someone using servlets has encountered this problem. I have a web site where user's can upload photos, but after the servlet uploads the file I would like it to also resize the deminsions of the picture and the quality (size). Has anyone run into this problem? Thanks - Scott ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html