Overview
This function converts an image to a base64 encoded string, useful for data encoding and transmission to API.Parameters
- Image: The image to encode in base64 format. Must target the image: Image.image.
- Compression: Use 1 to export the image as a PNG, preserving full transparency. For JPEGs, use any value from 0 to 0.99—lower values produce heavier compression and lower quality, while higher values retain more detail.

