Code: Select all
<%
Dim Image
Set Image = Server.CreateObject("GflAx" & gflsdk_version & ".GflAx")
Image.LoadBitmap server.mappath("/images_gallery/encabezado2.gif")
iwidth = image.width
iheight = image.height
= iheight/iwidth
if (image.width > int(request("width"))) then
newwidth = request("width")
newheight = request("width") * aspect
Image.Resize newwidth, newheight
end if
Image.SaveFormat = 1 ' This is a JPEG
Image.SaveJPEGQuality = 95
Response.ContentType = "image/" & ctype
Response.Expires = 60
Response.BinaryWrite Image.SendBinary
Set Image = nothing
%>