Format conversion not working

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
kizmat

Format conversion not working

Post 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?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Format conversion not working

Post 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"
Pierre.
Post Reply