Hi experts,
I'm trying to rezise images when my client uploads them
I found a piece of code that works in asp:
Sir = Server.CreateObject("SfImageResize.ImageResize")
Sir.LoadFromFile(dirpath & "\" & filename)
If (filewidth / fileheight) > (max_width / max_height) Then
Sir.Width = max_width
Else
Sir.Height = max_height
End If
Sir.DoResize()
Sir.SaveToFile(dirpath & "\" & final_filename)
Sir = Nothing
but I get:
Could not create an object of type 'SfImageResize.ImageResize'.
Can anybody help?
thanx
p.s. I'm working in vwd 2008 + vb
Open in new window
needs to be added at the top of your aspx filesee this link for more info : http://msdn.microsoft.com/en-us/library/ms973813.aspx