This document helps you understand format conversion.
Operation Scenarios
ZOS supports format conversion. You can use conversion parameters to convert the source image to a specified format.
Constraints and Restrictions
Supported source formats: JPG, JPEG, PNG, WebP, GIF, and TIFF.
Supported target formats: JPG, PNG, WebP, and TIFF.
The size of a source image cannot exceed 20 MB. The width or height cannot exceed 30,000 px, and total pixels cannot exceed 250 million px.
When an image with a transparency channel is converted to a format without a transparency channel, the transparent parts will turn black. Formats with transparency channels include WebP and PNG. Formats without transparency channels include JPG, JPEG, and TIFF.
For general limits o source images for image processing, see Image Processing Overview - Image Restrictions.
Description
Operator: format
Parameter Name | Purpose | Value | Required |
[value] | Converts the source image to the specified format. | jpg, png, webp, tiff | Yes |
Example
To convert a PNG image to JPG format, the specific request parameter is:
image/format, jpg
FAQ
What happens when converting a GIF image as the source image?
A: The GIF will become a static image.