Skip to content

Commit 5c4ddb4

Browse files
JulianAtkinsmichalsn
authored andcommitted
Mention AVIF images and the quality parameter, add reference to PHP manual
1 parent 38d2697 commit 5c4ddb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

user_guide_src/source/libraries/images.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ Image Quality
8787

8888
``save()`` can take an additional parameter ``$quality`` to alter the resulting image
8989
quality. Values range from 0 to 100 with 90 being the framework default. This parameter
90-
only applies to JPEG and WebP images, will be ignored otherwise:
90+
only applies to JPEG, WebP and AVIF images, will be ignored otherwise:
91+
92+
.. note:: For AVIF images, it is suggested to set the ``$quality`` parameter to 52. See also https://www.php.net/manual/en/function.imageavif.php
9193

9294
.. note:: The parameter ``$quality`` for WebP can be used since v4.4.0.
9395

0 commit comments

Comments
 (0)