views:

690

answers:

3

I found this web site (photoblog) http://www.OneReaction.net/

and I am very curious how this is done: 1) From source code you don't see the image URL 2) How to overlay the copyright information on the image without changing the underlying photo?

Ideas? Thanks!

+2  A: 

I believe that the ImageHandler.ashx is intercepting the requests and placing the copyright information into the image before delivering it to the browser. The handler is likely set up to capture all attempts to browse to a .jpg file.

The documentation on the drawing namespace should help you figure out the actual code for inserting text into an image.

Jeromy Irvine
+4  A: 

Check this link: Watermarking Images in ASP.NET with an HttpHandler. It describes a technique for adding watermarks to every image of your site. By changing the path of the HttpHandler in the web.config to something less general (e.g. /photos/*.jpg), you can constraint the effect to a subset of images.

Panos
The link is broken.
Deniz Dogan
A: 

The URL is in source code

<img id="image" title="Condemned to Contrast II" src="Resources/ImageHandler.ashx" 
    alt="Condemned to Contrast II" style="border-width:0px;" />

Try this link

Todd Smith