Image Manipulation: Thumbnails and watermarks

Posted on 2004-11-22
Last Modified: 2010-04-01
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?
Question by:peparsons
    LVL 35

    Accepted Solution


    Have a look here:

    (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...

    LVL 8

    Expert Comment

    you might also want to look out at this for advanced image handling utilities...

    LVL 35

    Expert Comment

    Although you shouldn't need that for thumbnails and watermarking...
    LVL 8

    Expert Comment

    >>>>also want to look out at this for advanced image handling utilities.
    yes..... thats why i said

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now