Format conversion not working
Posted: Fri Sep 29, 2006 6:15 am
Hi,
I have installed GFLAx (ActiveX/ASP component) v2.54 on my server, and am trying to convert some simple images into png format. However, for some reason I am receiving the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'SaveFormatName'
This is my code -
The above given code perfectly without the SaveFormatName, SaveFormat and SavePNGCompression methods. Can somebody please tell me what is wrong?
I have installed GFLAx (ActiveX/ASP component) v2.54 on my server, and am trying to convert some simple images into png format. However, for some reason I am receiving the following error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'SaveFormatName'
This is my code -
Code: Select all
With ctrl
.EnableLZW = true
.LoadBitmap ImagePath
Response.Write("Format: " & .SaveFormatDescription & "<br>")
Response.Write("width: " & .width & "<br>")
.SaveFormatName "png"
.SaveFormat 3 ' png format
.ChangeColorDepth 256
.SavePNGCompression 7
.SaveBitmap(NewImagePath)
end with