#1 2024-03-24 17:44:02

rvm99
Member
2024-03-24
3

HEIC partially working

Hello/Hi/Greetings,

First time install of Piwigo, most everything works minus HEIC. After scanning the various articles it was obvious my ImageMagick was of the wrong release so I locally built it and all the dependencies. At the command line, I can convert HEIC to jpg no problem. After many tweaks, I'm also seeing this in the Piwigo log:

[2024-03-24 14:28:41]   [INFO]  upload_file_heic, exec = /usr/local/bin/convert -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +
repage -resize "2484x1863>" "/var/www/html/piwigo/var/www/html/piwigo/upload/2024/03/24/20240324092841-a773dbaa.heic" ".//var/www/html/piwigo/upload/2024/03/24/pwg_representative/20240324092841-a773dbaa.jpg" 2>&1

*and* in fact, the conversion works, I can view that jpg file just fine outside of Piwigo. Unfortunately, I'm still seeing just the ? thumbnail and a big ? trying to view the image itself in Piwigo.

Any hints on where I should look next? Thanks in advance...love the product so far!!!

This is running on Rocky Linux 9

Piwigo 14.3.0 Check for upgrade
Installed on 21 March 2024, 2 days ago
Operating system: Linux
PHP: 8.0.30 (Show info) [2024-03-24 16:38:15]
MySQL: 8.0.36 [2024-03-24 11:38:15]
Graphics Library: External ImageMagick 7.1.1-30
Cache size 107.52 Mo   calculated 17 hours ago Refresh

Carl

Offline

 

#2 2024-03-25 15:41:01

rvm99
Member
2024-03-24
3

Re: HEIC partially working

A little more info...I noticed in the log if I force jpg to be returned as the representative_ext in upload_file_heic, I then see this error in the log:

[2024-03-25 14:13:20]   [INFO]  Handling ././upload/2024/03/25/20240325091320-a773dbaa.heic got jpg
[2024-03-25 14:13:20]   [INFO]  add_uploaded_file : force cache generation, derivative_url = https://rvmutants.com/i.php?/upload/202 … baa-me.jpg

What confuses me is where is the "-me" being appended to the file name? It looks like things would work right if some logic wasn't doing this.

Other config details:

$conf['graphics_library'] = 'ext_imagick';
$conf['ext_imagick_dir'] = '/usr/local/bin/';
$conf['picture_ext'] = array('jpg','jpeg','png','gif','webp');
$conf['file_ext'] = array_merge(
  $conf['picture_ext'],
  array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','svg', 'heic')
  );


Carl

Offline

 

Board footer

Powered by FluxBB

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