mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
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:
parent
7f3a1f417e
commit
79e91e3296
5 changed files with 10 additions and 3 deletions
|
@ -221,6 +221,10 @@ SELECT
|
|||
{
|
||||
$file_path.= 'jpg';
|
||||
}
|
||||
elseif (IMAGETYPE_WEBP == $type)
|
||||
{
|
||||
$file_path.= 'webp';
|
||||
}
|
||||
elseif (isset($conf['upload_form_all_types']) and $conf['upload_form_all_types'])
|
||||
{
|
||||
$original_extension = strtolower(get_extension($original_filename));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue