PixelCraft::loadBaseImage
Loads a instance image from an base64 encoded image string.
Signature
public function loadBaseImage(string
$encodedImage,
[string
$propertyName = 'image'] )
Parameters
$encodedImage
— string- The encoded image string.
$propertyName
— string- The name of the property to store the image in. Default is 'image'.
Returns
- bool
- Returns true if the base image is successfully loaded, false otherwise.