Print Page | Close Window

Generating Images

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7814
Printed Date: 01 April 2026 at 12:59am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Generating Images
Posted By: neotrix
Subject: Generating Images
Date Posted: 03 December 2003 at 2:36am

Dear asp Exxxperts!
I want to know is there a way i can add water marks in the images for example i want that my gallery shows every picture with a water mark on the bottom left corner, like it should show, "Copyright www.mysite.com" i have was checking a site today, i thought i would ask it from you cuz i cant understand a sh*t from there!
The most confusing thing i saw was that they were using PHP integrated with asp, i still couldent understand any thing, for example

http://sssolutions.net/ssimage/samples/asp/script.php?file=draw_logo.asp&img=draw_logo.jpg - http://sssolutions.net/ssimage/samples/asp/script.php?file=d raw_logo.asp&img=draw_logo.jpg

I think this explains it very well, some code was also written there...




Replies:
Posted By: neotrix
Date Posted: 03 December 2003 at 3:46am

This was written under it..

<%
Set Cup = Server.CreateObject("SSLib.SSImage")
Set Logo = Server.CreateObject("SSLib.SSImage")
Set Mask = Server.CreateObject("SSLib.SSImage")

Cup.LoadFile Server.MapPath("cup.jpg")
Logo.LoadFile Server.MapPath("logo.png")
Mask.CreateImage Cup.Width, Cup.Height
Mask.DrawImage 40, 70, Logo
Mask.Clone(Logo)
Mask.Darkness 255

Mask.Blur

Cup.MergeWithMask Logo, Mask

Response.ContentType = "image/jpeg"
Response.BinaryWrite Cup.SaveJPGStream
%>



Posted By: MorningZ
Date Posted: 03 December 2003 at 5:55am

that code you posted is using a COM object called " http://sssolutions.net/ssimage/ - SSImage "

something that 99% for sure won't be available on your server.....

http://www.serverobjects.com - ASPImage is another COM object that can do the above watermarking

rest assured that this is nothing ASP 3.0 can do "out of the box"



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: neotrix
Date Posted: 03 December 2003 at 7:48am
yea, i have asp 3.0, will it work for me ?!?


Posted By: MorningZ
Date Posted: 03 December 2003 at 10:04am

your server needs to have that COM object installed....

chances are, it doesn't.. but only you asking your host can tell you for sure



-------------
Contribute to the working anarchy we fondly call the Internet



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net