If its jpegs you are using you could use the 'new' Image IO functionality of
JDK 1.401 -- beware though the Jpeg encoder in version 1.40 has some bugs
which make it useless for this purpose. ImageIO allows you to reencode Jpegs
to different compression levels.. and its pure java.. you could even resize
on the fly to generate images to user's screen sizes...

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Amit Wadhwa
Sent: 04 December 2002 09:10
To: [EMAIL PROTECTED]
Subject: Re: Optimizing an image


use gifencoder/jpgencoder for making thumbnails, specifying size of image
etc.

*****************************************
Amit Wadhwa
Technical Support Representative,
Dell International Services,
Bangalore
*****************************************


-----Original Message-----
From: Vibha Jindal [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Optimizing an image


Hi,

I have a site that has images uploaded. I want to optimize the uploaded
images (reduce the file size of the images without reducing the overall
dimensions and without compromizing too much on the quality). I want to
achieve this through a JAVA program.

Can someone please help?

Regards,
Vibha

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to