Best format pro
imgproxy measures the complexity of the image to choose when it should use a lossless or near-lossless encoding. Then imgproxy tries to save the image in multiple formats to pick one with the smallest resulting size.
imgproxy will use AVIF or WebP only if AVIF/WebP support detection is enabled.
imgproxy may change your quality and autoquality settings if the
best format is used.
IMGPROXY_BEST_FORMAT_COMPLEXITY_THRESHOLD: the image complexity threshold. imgproxy will use a lossless or near-lossless encoding for images with low complexity. Default:
IMGPROXY_BEST_FORMAT_MAX_RESOLUTION: when greater than
0and the image's resolution (in megapixels) is larger than the provided value, imgproxy won't try all the applicable formats and will just pick one that seems the best for the image
trueand the resulting image format is not specified explicitly, imgproxy will use the
bestformat instead of the source image format
bestformat is used, imgproxy will skip processing of SVG and formats listed to skip processing