ImageWriteBase64()

Writes Base64 images to the specified filename and destination.

Requires Extension: Image extension

ImageWriteBase64( image=any, destination=string, format=string, inHTMLFormat=boolean );

Returns: String

Argument Description
image
any, required

The image on which this operation is performed.

Alias: name

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