Receives a HEIC (Apple), JPG (Android UltraHDR) or EXR HDR image file to be converted to the specified variants. Returns the complete specification of the conversion, which includes the unique conversion identifier in the form of an UUID.
Name of the resulting file (without extension). Use only characters a-z, 0-9, underscores, or hyphens. Automatically generated if omitted.
width
Resizes the image to fit within the specified width.
height
Resizes the image to fit within the specified height.
extrapolate
Whether to extrapolate when resizing the image to the requested width or weight if it's larger than the source image. Defaults to false.
format
Specifies the desired output format, the following values are accepted:
jpeg-xt
The response will contain an HDR JPEG-XT file with the .jpg extension. This files can be used straightaway in HTML pages just like any other jpg file, they display in HDR on compatible devices and fallback to a standard dynamic range image on non-compatible devices.
jpeg-xl
The response will contain an HDR JPEG-XL file with the .jxl extension.
avif
The response will contain an HDR AVIF file with the .avif extension.
jpeg
For convenience, you can also request a regular non-HDR JPEG file as part of your conversion. This files do not show in HDR, and appear in your conversion with the .sdr.jpg extension.
baseQuality
The quality of the image. Default quality is 95
gainmapQuality
When specifying the jpeg-xt format, the quality of the gainmap can be optionally specified. If not specified, the same baseQuality will be used.
onSdr
Specifies what to do if the source image is found to be a non-HDR image. The default action is fail.
fail
The conversion will be marked as failed, and no images will be generated, even if other variants could potentially produce one. The failed conversion will not count against your quota.
skip
This variant will be marked as skipped; images may still be generated if other variants allow for non-HDR conversions. If other files are produced, the conversion will still count towards your quota.
continue
The variant image will still be generated using the standard dynamic range source image, but it will not be in HDR. The conversion will still count towards your quota.
expandToHdr
The source's dynamic range will be expanded to HDR, making it look perceptually consistent with the original image but taking advantage of HDR's extended brightness capabilities.
Specifying multiple variants
You can obtain multiple image formats and size combinations in a single request by passing a JSON array of variants, like this:
An HTTP 200 status code is returned if the conversion request is accepted. The complete details of the conversion entity are returned as a JSON object in the response body, which includes a unique UUID identifier that can be used to reference this conversion when calling other endpoints.
Returns information about the status of a conversion. Also includes information on the status of each individual variant being converted.
The UUID of the conversion, as obtained after calling the /convert endpoint.
Return
An HTTP 200 status code is returned if the conversion was found. The complete details of the conversion entity are returned as a JSON object in the response body.
Downloads a ZIP file that contains all the images files that resulted from a conversion.
You should wait until the conversion status changes to Ready before being able to download the resulting ZIP file. Query the /status endpoint to obtain information about the status of a conversion.
Parameter name
Description
conversionUuid
The UUID of the conversion, as obtained after calling the /convert endpoint.
If the conversion is in progress, it will be canceled. If all files have already been converted, it will still count towards your conversion quota. Once deleted, the resulting files from this conversion will no longer be available for download.
Parameter name
Description
conversionUuid
The UUID of the conversion, as obtained after calling the /convert endpoint.
Return
The complete details of the conversion entity are returned as a JSON object in the response body.