Format
public enum Format : URLImageQueryExtendable
Use Format
to specify the image file formats supported by Contentful’s Images API.
Supported formats are jpg
png
and webp
.
-
Specify that the API should return the image as a jpg. Additionally, you can choose to specify a quality, or you can choose `jpg(withQuality: .unspecified).
Declaration
Swift
case jpg(withQuality: JPGQuality)
-
Specify that the API should return the image as a png.
Declaration
Swift
case png(bits: PngBits)
-
Specify that the API should return the image as a webp file.
Declaration
Swift
case webp