Format
The Format parameter controls how the image will be constrained within the provided size (width and height) values, in order to maintain the correct proportions.
NOTE: The Format parameter has no effect unless both width and height are specified.
enum Format {
AUTO
AVIF
BJPG
GIF
JPG
JXL
MP4
PJPG
PJXL
PNG
PNG8
WEBP
WEBPLL
WEBPLY
}
Values
Format.AUTO
Automatically use the best format based on browser support and image/transform characteristics
Format.AVIF
AV1 Image File Format
Format.BJPG
Baseline JPEG (also bjpeg)
Format.GIF
Graphics Interchange Format
Format.JPG
JPEG (also jpeg)
Format.JXL
JPEGXL (also jpegxl)
Format.MP4
MP4 (H.264)
Format.PJPG
Progressive JPEG (also pjpeg)
Format.PJXL
Progressive JPEGXL (also pjpegxl)
Format.PNG
Portable Network Graphics
Format.PNG8
Portable Network Graphics palette image with 256 colors and 8-bit transparency
Format.WEBP
WebP
Format.WEBPLL
WebP (Lossless)
Format.WEBPLY
WebP (Lossy)
Member Of
TransformationInput
input