Polish avoids converting images to the AVIF format when such conversion would increase the file size. AVIF also has a few format-specific requirements, and capacity limits that can occasionally cause Polish to skip AVIF conversion for a particular request.
When converting an image to AVIF would increase its file size, Polish skips the conversion and keeps the original format. Like WebP, AVIF is less likely to improve on already heavily-compressed or low-quality JPEG images, since there is less redundant data left to remove.
AVIF does not support images smaller than 16x16 pixels. If your image is smaller than this, Polish will not produce an AVIF version, and will serve the original format (or WebP, if enabled) instead.
Unlike WebP, AVIF does not support animated images. If the origin image is animated (for example, an animated GIF or animated PNG), Polish will not produce an AVIF version of it.
AVIF compression is more computationally intensive than Polish's other compression options. During periods of high demand, Polish may be temporarily unable to produce an AVIF version for some requests. When this happens, Polish serves the original format (or a WebP version, if enabled). A subsequent request for the same image may successfully produce an AVIF version once demand decreases.
To maintain fast response times, Polish may use faster, less exhaustive compression settings for AVIF during periods of high demand. This can result in a larger AVIF file than Polish would otherwise produce, though Polish still only serves AVIF when it is smaller than the original image.