Asp generate thumbnails asp automatically generate thumbnails asp.net generate thumbnails asp code generator
Aspjpeg is free and can be used next time. Currently, this component is supported in general space.
The principle of no component is the same as that of writing width = 100 height = 100 on the image, but the aspect ratio is higher and the volume is not compressed. It is estimated that no component can do this.
Call compressphoto (photopath,) 'original Image path thumbnail width Thumbnail height
Function compressphoto (photopath, widthx, heighty)
Set parameters 1 = server. createobject ("persits.jpeg ")
255.1.open server. mappath (photopath)
Rows 1.width = widthx
Bytes 1.height = heighty
Container 1.save server. mappath ("111cn/"& Photopath) 'Save the thumbnail
End function
'Determine whether the server supports aspjpeg
On error resume next
Set parameters 1 = server. createobject ("persits.jpeg ")
If err. number <> 0 then
Response. write "the server does not support the ASPJPEG component! "
Else
Response. write "the server supports the ASPJPEG component! "
End if