Page 1 of 1

Format conversion not working

Posted: Fri Sep 29, 2006 6:15 am
by kizmat
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 -

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
The above given code perfectly without the SaveFormatName, SaveFormat and SavePNGCompression methods. Can somebody please tell me what is wrong?

Re: Format conversion not working

Posted: Fri Oct 06, 2006 9:43 am
by xnview
kizmat wrote: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 -

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
The above given code perfectly without the SaveFormatName, SaveFormat and SavePNGCompression methods. Can somebody please tell me what is wrong?
Please try .SaveFormatName = "png"