I am trying to use a free application that I found online.
unfortunately it uses asp.image and the hosting account I have uses
asp.jpeg. I was wondering if I could get some assistance in converting
the code below for use with asp.jpeg
Thanks for any assistance :)
'********resize main
Set Image = Server.CreateObject("AspImage.Image")
Image.AutoSize = false
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Image.LoadImage userimage2
Set FSO = Nothing
intXsizeMain = Image.MaxX
intYsizeMain = Image.MaxY
if intYsizeMain > 300 then
targetY = 300
findsize1 = intYsizeMain - targetY
findsize2 = findsize1 / intYsizeMain
findsize3 = (1 - findsize2)
intXSizeNew = (intXsizeMain * findsize3)
Image.ResizeR intXSizeNew, targetY
Image.FileName = userimage2
Image.SaveImage
end if
Set Image = nothing
'**********end main
'********resize thumbnail
Set Image = Server.CreateObject("AspImage.Image")
Image.AutoSize = false
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Image.LoadImage userimage
Set FSO = Nothing
intXSize = Image.MaxX
intYsize = Image.MaxY
if intYsize > 50 then
targetY = 50
findsize1 = intYsize - targetY
findsize2 = findsize1 / intYsize
findsize3 = (1 - findsize2)
intXSizeNew = (intXsize * findsize3)
Image.ResizeR intXSizeNew, targetY
Image.FileName = userimage
Image.SaveImage
end if
Set Image = nothing
set intXSize = nothing
set intYsize = nothing
'**********end thumbnail
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/