最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp生成缩略图代码 [aspjpeg]
时间:2022-07-02 23:18:20 编辑:袖梨 来源:一聚教程网
asp生成缩略图 asp 自动生成缩略图 生成缩略图 asp代码生成器
aspjpeg是免费的,下一个就能用,现在一般的空间都支持这个组件
无组件的原理和在图片上写一样的,只是宽高等比了,体积还是没有压缩,估计无组件做不了这个吧
call compressphoto(photopath,120,90) '原图路径 缩略图宽 缩略图高
function compressphoto(photopath,widthx,heighty)
set jpeg1=server.createobject("persits.jpeg")
jpeg1.open server.mappath(photopath)
jpeg1.width=widthx
jpeg1.height=heighty
jpeg1.save server.mappath("111cn/" & photopath) '保存缩略图
End function
'判断服务器是否支持aspjpeg
on error resume next
set jpeg1=server.createobject("persits.jpeg")
if err.number0 then
Response.write "服务器不支持ASPJPEG组件!"
else
Response.write "服务器支持ASPJPEG组件!"
End if
相关文章
- POKI小游戏如何免费秒玩 04-12
- 如何找回网易游戏账号 04-12
- 1-75级抖音刷级费用-抖音1-75级升级价目 04-12
- 漫蛙漫画网下载最新版本安装包-漫蛙漫画官方网站资源下载入口安卓苹果 04-12
- 光遇10.8日每日任务攻略 04-12
- 赛博朋克2077活血泵购买位置介绍 04-12