Skip to content

Commit

Permalink
Add IMAGETYPE_AVIF constant to documentation (php#2885)
Browse files Browse the repository at this point in the history
This constant is introduced with PHP 8.1 and is not documented yet.

Co-authored-by: JanisPlayer <[email protected]>
  • Loading branch information
joshuaruesweg and JanisPlayer authored Oct 25, 2023
1 parent 0b26a7a commit f40e02f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions reference/exif/functions/exif-imagetype.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@
<entry>18</entry>
<entry><constant>IMAGETYPE_WEBP</constant></entry>
</row>
<row>
<entry>19</entry>
<entry><constant>IMAGETYPE_AVIF</constant></entry>
</row>
</tbody>
</tgroup>
</table>
Expand Down Expand Up @@ -167,6 +171,12 @@
Added WebP support.
</entry>
</row>
<row>
<entry>8.1.0</entry>
<entry>
Added AVIF support.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
Expand Down
6 changes: 5 additions & 1 deletion reference/image/functions/image-type-to-mime-type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@
<entry><constant>IMAGETYPE_ICO</constant></entry>
<entry><literal>image/vnd.microsoft.icon</literal></entry>
</row>
<row>
<row>
<entry><constant>IMAGETYPE_WEBP</constant></entry>
<entry><literal>image/webp</literal></entry>
</row>
<row>
<entry><constant>IMAGETYPE_AVIF</constant></entry>
<entry><literal>image/avif</literal></entry>
</row>
</tbody>
</tgroup>
</table>
Expand Down

0 comments on commit f40e02f

Please sign in to comment.