Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Generating Images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Generating Images

 Post Reply Post Reply
Author
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Topic: Generating Images
    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=d raw_logo.asp&img=draw_logo.jpg

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

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post 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
%>

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2003 at 5:55am

that code you posted is using a COM object called "SSImage"

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

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
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2003 at 7:48am
yea, i have asp 3.0, will it work for me ?!?
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.