Hello Piwigo team,
I have run into a strange problem. I have enabled HEIC uploads by adding the following to enable HEIC. HEIC files work without problem when I uploaded the files through the web interface. However, when I used the sFTP method, none of the images work.
imghost
local/config/config.inc.php wrote:
<?php
$conf['upload_form_all_types'] = true;
$conf['enable_formats'] = true;
?>
Environment wrote:
Piwigo 14.5.0 Check for upgrade
Installed on 22 August 2024, 13 hours ago
Operating system: Linux
PHP: 8.2.22 (Show info) [2024-08-22 17:00:33]
MySQL: 8.0.36 [2024-08-22 17:00:33]
Graphics Library: External ImageMagick 6.9.11-60
Cache size N/A never calculated Refresh
Offline
I solved it.
I had to change one of these settings. I'm not sure which one it was, but here is what made it work for me.
local/config/config.inc.php wrote:
<?php
$conf['upload_form_all_types'] = true;
$conf['enable_formats'] = true;
$conf['picture_ext'] = array('jpg','jpeg','png','gif','webp','heic');
$conf['file_ext'] = array_merge(
$conf['picture_ext'],
array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','svg',)
);
$conf['format_ext'] = array('cmyk.jpg', 'cr2', 'zip');
?>
Offline