Skip to content

Commit

Permalink
Add MIME type for WEBP image format
Browse files Browse the repository at this point in the history
The WEBP image format does not yet have an official IANA MIME type definition.
However, the same can be said about video/webm which is adopted in a similar width as WEBP.

Apache web server, python web server and many more has adopted the MIME type image/webp for the WEBP image format, so it is only logical to assume its validity at the same level as WEBM video.
  • Loading branch information
karlmacklin committed Dec 7, 2018
1 parent 2d33335 commit b3b7e2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions.php
Expand Up @@ -724,6 +724,7 @@ function mimetype_from_extension($extension)
'txt' => 'text/plain',
'wav' => 'audio/x-wav',
'webm' => 'video/webm',
'webp' => 'image/webp',
'wma' => 'audio/x-ms-wma',
'wmv' => 'video/x-ms-wmv',
'woff' => 'application/x-font-woff',
Expand Down

0 comments on commit b3b7e2a

Please sign in to comment.