==============================================================================================
'图片的高度和宽度修改成原来的1/10
Function update_picture(filename,newfilename)
Dim Jpeg
Set Jpeg=CreateObject("Persits.Jpeg")
Jpeg.Open filename
Jpeg.Width =Jpeg.OriginalWidth/10
Jpeg.Height =Jpeg.OriginalHeight /10
Jpeg.Save newfilename
Jpeg.Close
Set Jpeg=Nothing
End Function
'
Dim fs,fo,x
Dim str1,str2,filename,newfilename
str1 = "G:\1\"
str2 = "G:\2\"
set fs=CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder(str1)
'遍历文件夹str1中的所有文件
For each x in fo.files
filename =str1 & x.Name
newfilename = str2 & x.Name
call update_picture(filename,newfilename)
next
set fo=nothing
set fs=nothing
==============================================================================================作者: zero0223 时间: 2009-12-9 09:01
顶下~作者: lijinshui 时间: 2009-12-9 09:33
关于aspjpeg
简单安装方式的话,直接将aspjpeg.dll复制到windows/system32目录下面,在“开始”,“运行”处输入“regsvr32 aspjpeg.dll” 注册即可!
aspjpeg.dll下载地址:http://www.const.net.cn/userfiles/AspJpeg.rar
重启IIS即可使用,注册使用
Set jpg = Server.CreateObject("Persits.Jpeg")
jpg.RegKey = "48958-77556-02411"
查看是否注册成功使用:
Set jpg = Server.CreateObject("Persits.Jpeg")
response.write jpg.expires