Support webp format (#1785)

* consider webP as an input and output format, meaning a derivative from webp is still a webp
This commit is contained in:
Phlogi
2023-09-11 17:10:52 +02:00
committed by GitHub
parent 7f3a1f417e
commit 79e91e3296
5 changed files with 10 additions and 3 deletions

1
i.php
View File

@@ -357,6 +357,7 @@ function send_derivative($expires)
case ".jpe": case ".jpeg": case ".jpg": $ctype="image/jpeg"; break;
case ".png": $ctype="image/png"; break;
case ".gif": $ctype="image/gif"; break;
case ".webp": $ctype="image/webp"; break;
}
header("Content-Type: $ctype");