一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

simple

时间:2008-01-12 编辑:简简单单 来源:一聚教程网

>

AspJpeg 1.0 - Simple.asp


<%
    ' Create instance of AspJpeg
    Set Jpeg = Server.CreateObject("Persits.Jpeg")
    
    ' Compute path to source image
    Path = Server.MapPath("images") & "dodge_viper.jpg"
    ' Open source image
    Jpeg.Open Path
    ' Decrease image size by 50%
    Jpeg. Apply sharpening if necessary
    ' Jpeg.Sharpen 1, 130
    ' create thumbnail and save it to disk
    Jpeg.Save Server.MapPath("images") & "clock_small.jpg"
%>
Original Image:


Thumbnail (50% reduction):


<%
    Response.Write "


AspJpeg expires on " & Jpeg.Expires
%>



热门栏目