ASP image watermark

Discussion in 'C#' started by ludwig, Mar 24, 2008.

  1. #1
    Hi guys

    does anyone know how to put automatic watermark on images before showing them to the user. Linke I have a bunch of images that I don't want to edit and want to keep their originals but before showing them to the website visitor I want to put a watermark with the site's URL

    how can this be done easily
     
    ludwig, Mar 24, 2008 IP
  2. Webmonkey-in-Ireland

    Webmonkey-in-Ireland Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is this asp or asp.net?

    codeproject.com/KB/GDI-plus/watermark.aspx

    That any good to you?
     
    Webmonkey-in-Ireland, Mar 24, 2008 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Image work is server intensive, you want to watermark them when they are uploaded not each time that they are shown. If you have already a load of images uploaded then you could write a one off script to go through the image folders and deal with them all but you may need to be careful of the page timing out if there are a lot of images.
     
    AstarothSolutions, Mar 25, 2008 IP
  4. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #4
    its ASP classic

    I dont want to really overwrite the images. I can do it with Photoshop by writing an action. I need to keep the originals for later usage. I want them to be automated.

    I upload them via FTP

    I want to have something like

    image.asp?id=XXXXXXX

    this file opens XXXXXXX.jpg and on the image it watermarks YYYYYYYY in the bottom. This is my point
     
    ludwig, Mar 25, 2008 IP
  5. InfoSmith

    InfoSmith Peon

    Messages:
    884
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    InfoSmith, Apr 6, 2008 IP
  6. TheCashCow25

    TheCashCow25 Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6

    You can surely do this, there are many image components out there that could easily do the task. However, as earlier mentioned in this thread, it would consume a lot of server power. Rather, have the image component create a copy of the picture at the time of upload, to which you add a watermark and display when needed. When you need the version without the watermark, you use the original upload.
     
    TheCashCow25, Apr 9, 2008 IP