#1 2024-08-22 23:24:04

GSM-S
Member
2007-12-31
42

HEIC problem when using sFTP

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.

https://i.ibb.co/5c7khXF/Screenshot-2024-08-22-at-5-09-26-PM.png
imghost


https://i.ibb.co/mCS6twB/IMG-601-CABC36-C63-1.jpg https://i.ibb.co/JQDhtmm/IMG-885414-AFA96-C-1.jpg


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

 

#2 2024-08-23 04:11:49

GSM-S
Member
2007-12-31
42

Re: HEIC problem when using sFTP

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact