Aspjpeg| thumbnail aspjpeg is a shared software produced by Persits, with a probationary period of 30 days, where you can download: Http://www.persits.com/aspjpeg.exe. The latest version number is 1.3
.
AspJpeg is a very powerful image processing component, with which you can easily make thumbnails of pictures and add watermarks to images. Here is a brief introduction to how to use:
you first perform the downloaded EXE file, install the component
1, make thumbnail images for pictures
<% ' Establish an example
Dim Jpeg,path
Set Jpeg = Server.CreateObject ("Persits.jpeg")
' Picture location
Path = Server.MapPath ("Images") & "\clock.jpg"
' Open
Jpeg.open Path
' Sets the thumbnail size (this ratio is set to 50%)
jpeg.width = Jpeg.originalwidth/2
jpeg.height = JPEG.ORIGINALHEIGHT/2
' save thumbnails to the specified folder
jpeg.save Server.MapPath ("Images") & "\clock_small.jpg"
' Logoff instance
Set Jpeg = Nothing
%>
<img src=http://www.163design.net/a/y/"images/clock.jpg" ><P>
<img src=http://www.163design.net/a/y/"Images/clock_small.jpg" >
2, add the watermark function for the picture
<%
Dim Jpeg
' Establish an example
Set Jpeg = Server.CreateObject ("Persits.jpeg")
' Open the target picture
jpeg.open Server.MapPath ("images/dodge_viper.jpg")
' Add text watermark
Jpeg.Canvas.Font.Color = &hff0000 ' Red
Jpeg.Canvas.Font.Family = "Song Body"
Jpeg.Canvas.Font.Bold = True
Jpeg.Canvas.Print, "Copyright (c) cnmaya.org"
' Save file
jpeg.save Server.MapPath ("images/dodge_viper_framed.jpg")
' Logoff object
Set Jpeg = Nothing
%>