Convert Image
AI-generatedSummary
Converts an image from a URL to WebP, PNG, or JPEG with optional quality control via the Artify API.
Inputs
- imageUrl (required) — The URL of the image to convert.
- format — The target output format (WebP, PNG, or JPEG).
- quality — Quality setting for the output image (0-100). Ignored for PNG.
Output shape
A single record containing the conversion response data from the Artify API.
The response data structure is determined by the Artify API; typically includes the processed image URL or metadata.
Examples
Example 1: Convert a JPG image hosted on a URL to WebP format.
Set imageUrl to the JPG URL, format to 'webp', quality to 85.
Example 2: Convert a PNG image to PNG format with maximum quality.
Set imageUrl to the PNG URL, format to 'png', quality to 100.