image.writeBase64()

Writes Base64 images to the specified filename and destination.

image.writeBase64( destination=string, format=string, inHTMLFormat=boolean )

Returns: String

Argument Description
destination
string, required

The path for the destination file.

format
string, required

the image format

inHTMLFormat
boolean, optional

Specify whether Base64 output includes the headers used by the Base64 images in the HTML "img" tag ("data:image/{format};base64,...") :

  • true
  • false (default)

Examples

imgObj = imageNew("",200,200,"rgb","red");
	imgObj.writeBase64('base64.txt','jpg','true');

See also