Aspjpeg is a shared software for Persits, and the trial period is 30 days, you can download: http://www.persits.com/aspjpeg.exe. The latest version number is 1.3ASPJPEG is a powerful image processing component that can easily make a thumbnail of the picture and add watermarking for the image. Let's take a brief introduction: You should first perform the downloaded EXE file, install the component 1, make thumbnails for the picture
<% 'Establish an instance DIM JPEG, PATHSET JPEG = Server.createObject ("Persits.jpeg")' Picture location Path = Server.MAppath ("Images") & "/clock.jpg"
'Open JPEG.Open Path
'Set the thumbnail size (here the proportion is set to 50%) JPEG.WIDTH = JPEG.RiginalWidth / 2jpeg.Height = JPEG.ORIGINALHT / 2
'Save thumbnails to the specified folder JPEG.SAVE Server.MAPPATH ("Images") & "/clock_small.jpg"
'Logout instance set jpeg = nothing%>
2, add the watermark function <% DIM JPEG 'to establish an instance set jpeg = server.createObject ("persits.jpeg")' Open the target picture JPEG.Open Server.MAppath ("Images / Dodge_viper.jpg")
'Add a text watermark jpeg.canvas.font.color = & hff0000' red jpeg.canvas.font.family = "Song" JPEG.CANVAS.FONT.BOLD = True Jpeg.canvas.Print 10, 10, "CopyRight (c) cnmaya "
'Save file jpeg.save server.mappath ("images / dodge_viper_framed.jpg")
'Logout Object Set Jpeg = Nothing%>
Author: allen personal website: http: //www.cnmaya.org