resize images on upload
Posted on 2011-02-17
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
Sir.Height = max_height
Sir.SaveToFile(dirpath & "\" & final_filename)
Sir = Nothing
but I get:
Could not create an object of type 'SfImageResize.ImageResize'.
Can anybody help?
p.s. I'm working in vwd 2008 + vb