Developing a simple ASP.NET/MVC application for photoshop, how to do it?

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

and I am very curious how this is done: 1) From the source code, you cannot see the url of the image 2) How do I overlay copyright information on the image without changing the base photo?

Ideas? Thank!

+1


source to share


3 answers


Check out this link: Watermarks in ASP.NET with HttpHandler . It describes a method for adding watermarks to every image on your site. By changing the path HttpHandler

in web.config

to something less general (for example /photos/*.jpg

), you can limit the effect to a subset of the images.



+4


source


I believe ImageHandler.ashx intercepts requests and puts the copyright information on the image before being delivered to the browser. The handler is probably configured to capture all attempts to navigate to the .jpg file.



The documentation in the drawing namespace should help you determine the actual code to insert text into an image.

+2


source


The url is in the 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

0


source







All Articles