Lucee Function Reference

imagewritebase64()

Writes Base64 images to the specified filename and destination.

Example

imagewritebase64(any image,string destination,string format,[boolean inHTMLFormat]):string

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
image any  Yes The image on which this operation is performed.  
destination string  Yes The path for the destination file.  
format string  Yes the image format  
inHTMLFormat boolean  No Specify whether Base64 output includes the headers used by the Base64 images in the HTML "img" tag ("data:image/{format};base64,...") :
  • true
  • false (default)