Skip to main content

Format

Output format for the transformed image, determining compression method, quality, and browser compatibility

enum Format {
AUTO
AVIF
BJPG
GIF
JPG
JXL
MP4
PJPG
PJXL
PNG
PNG8
WEBP
WEBPLL
WEBPLY
}

Values

Format.AUTO

Automatically selects the optimal format based on browser capabilities, image content, and transformation requirements

Format.AVIF

AV1 Image File Format - next-generation format with superior compression and quality, supported by modern browsers

Format.BJPG

Baseline JPEG format optimized for broad compatibility and sequential loading

Format.GIF

Graphics Interchange Format supporting animation and transparency, ideal for simple graphics and animations

Format.JPG

Standard JPEG format with lossy compression, best for photographs and complex images

Format.JXL

JPEG XL format offering better compression than JPEG with both lossy and lossless modes

Format.MP4

MP4 video format (H.264) for converting animated images to video

Format.PJPG

Progressive JPEG that loads in multiple passes, improving perceived loading speed

Format.PJXL

Progressive JPEG XL that loads incrementally for better user experience

Format.PNG

Portable Network Graphics with lossless compression, ideal for images with transparency or sharp edges

Format.PNG8

8-bit PNG with 256-color palette and transparency, smaller file size than full PNG

Format.WEBP

WebP format providing excellent compression for both lossy and lossless images

Format.WEBPLL

WebP lossless format maintaining perfect image quality with better compression than PNG

Format.WEBPLY

WebP lossy format offering better compression than JPEG while maintaining quality

Member Of

TransformationInput input