• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Image Manipulation: Thumbnails and watermarks

I want to write some JSPs which take a jpg and create two different versions of it: 1. a thumbnail, and 2. a full-size version but with a watermark across it. Can this be done in Java?
Thanks.
0
peparsons
Asked:
peparsons
  • 2
  • 2
1 Solution
 
TimYatesCommented:
Sure!

Have a look here:

http://today.java.net/pub/a/today/2004/04/22/images.html

(taken from my solution on http:/Q_21213311.html)

You can just load the image, create a scaled instance, and return that as a JPG, or write some text across it and return that as a JPG :-)

Let me know if you have any problems or questions about it...

Tim
0
 
kiranhkCommented:
you might also want to look out at this for advanced image handling utilities...

http://jiu.sourceforge.net

0
 
TimYatesCommented:
Although you shouldn't need that for thumbnails and watermarking...
0
 
kiranhkCommented:
>>>>also want to look out at this for advanced image handling utilities.
yes..... thats why i said
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now