#16 2023-12-29 01:07:26

nickpg
Member
2023-12-29
3

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Hello @plg

I am also having a similar problem. The heic files upload just fine but the preview is missing but I am not seeing the convert command being called in the logs
Enviroment details:

Piwigo 14.0.0
Installed on 10 November 2023, 1 month 2 weeks 4 days ago
Operating system: Linux
PHP: 7.4.3-4ubuntu2.19 (Show info) [2023-12-29 00:03:58]
MySQL: 5.5.5-10.3.38-MariaDB-0ubuntu0.20.04.1 [2023-12-29 00:03:58]
Graphics Library: ImageMagick 6.9.10-23
Cache size N/A

From the logs:

Code:

[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync uploaded ./upload/buffer/ea94d950e3121d6b8d7e98cb2680554c-u1-002of002.chunk
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync all chunks are not uploaded yet, maybe on next chunk, exit for now
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync uploaded ./upload/buffer/ea94d950e3121d6b8d7e98cb2680554c-u1-001of002.chunk
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync ea94d950e3121d6b8d7e98cb2680554c 2 chunks available, try now to get lock for merging
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync lock obtained to merge chunks
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync original_sum=ea94d950e3121d6b8d7e98cb2680554c, chunk 1/2 merged
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync original_sum=ea94d950e3121d6b8d7e98cb2680554c, chunk 2/2 merged
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync merged file ./upload/buffer/ea94d950e3121d6b8d7e98cb2680554c-u1.merged saved
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync ./upload/buffer/ea94d950e3121d6b8d7e98cb2680554c-u1.merged MD5 checksum OK
[2023-12-28 23:39:33]   [INFO]  upload_file_pdf, $file_path = ././upload/2023/12/28/20231228233933-ea94d950.heic, $representative_ext =
[2023-12-28 23:39:33]   [INFO]  upload_file_heic, $file_path = ././upload/2023/12/28/20231228233933-ea94d950.heic, $representative_ext =
[2023-12-28 23:39:33]   [INFO]  upload_file_tiff, $file_path = ././upload/2023/12/28/20231228233933-ea94d950.heic, $representative_ext =
[2023-12-28 23:39:33]   [INFO]  upload_file_video, $file_path = ././upload/2023/12/28/20231228233933-ea94d950.heic, $representative_ext =
[2023-12-28 23:39:33]   [INFO]  upload_file_psd, $file_path = ././upload/2023/12/28/20231228233933-ea94d950.heic, $representative_ext =
[2023-12-28 23:39:33]   [INFO]  upload_file_eps, $file_path = ././upload/2023/12/28/20231228233933-ea94d950.heic, $representative_ext =
[2023-12-28 23:39:33]   [INFO]  Handling ././upload/2023/12/28/20231228233933-ea94d950.heic got
[2023-12-28 23:39:33]   [INFO]  add_uploaded_file : force cache generation, derivative_url = http://192.168.0.70/_data/i/themes/default/icon/mimetypes/unknown-me.png
[2023-12-28 23:39:33]   [DEBUG] ws_images_uploadAsync image_id after add_uploaded_file = 229
[2023-12-28 23:39:33]   [DEBUG] empty_lounge, exec=B2GP, begins
[2023-12-28 23:39:33]   [DEBUG] empty_lounge, exec=B2GP wins the race and gets the token!
[2023-12-28 23:39:33]   [DEBUG] empty_lounge, exec=B2GP, ends

Any help would be appreciated, Thanks in advanced!

Offline

 

#17 2023-12-30 16:17:34

cryopad
Piwigo Team
Grenoble, France
2015-11-01
196

Re: Piwigo 14.0.0.0 beta 3 HEIC files

My server configuration is:

Piwigo 14.1.0
Operating system: Linux
PHP: 8.0.30
MySQL: 10.6.16-MariaDB-1:10.6.16+maria~deb11-log
Graphics Library: External ImageMagick 6.9.11-60

and I have added the below line in the local configuration file with LocalFiles Editor to manage HEIC files:

Code:

$conf['graphics_library'] = 'ext_imagick';

NB: To check if your version 6 of ImageMagick manages HEIC files, use the command:

convert -list format | grep HEIC

Last edited by cryopad (2023-12-30 16:29:45)


If you enjoy Piwigo for iOS…
➤ We would appreciate an AppStore review.
➤ Comments, suggestions ? Tell us on GitHub…
➤ Not yet available in your language ? Help us translate it…

Offline

 

#18 2023-12-31 02:34:13

nickpg
Member
2023-12-29
3

Re: Piwigo 14.0.0.0 beta 3 HEIC files

I added the code to the local config file but after adding it the graphics library changed to something else.

I have now installed ImageMagick. The initial install of ImageMagick version was below version 6.9.11 so I upgraded it thinking that was the reason why it wasnt managing HEIC files and Piwigo is now using

Graphics Library: External ImageMagick 7.1.1-26

It seems that ImageMagick needs libheif and libde265 to manage HEIC files. I am in the process of trying to get ImageMagick to work with libheif and libde265 but I am running into a couple of issues. I just wanted to check to see if this is the correct path and if not could someone point me in the correct direction
Thanks!

Offline

 

#19 2023-12-31 03:15:05

nickpg
Member
2023-12-29
3

Re: Piwigo 14.0.0.0 beta 3 HEIC files

I got it working! =D

I dont think I was installing libheif and libde265  correctly  but these commands worked for me

Code:

sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
apt-get update
apt-get install build-essential autoconf libtool git-core cmake
apt-get build-dep imagemagick libmagickcore-dev libde265 libheif
cd /usr/src/ 
git clone https://github.com/strukturag/libde265.git  
git clone https://github.com/strukturag/libheif.git 
cd libde265/ 
./autogen.sh 
./configure
make -j$(nproc)  
make install 
cd /usr/src/libheif/ 
mkdir build
cd build
cmake --preset=release ..
make -j$(nproc)  
make install
cd /usr/src/ 
git clone https://github.com/ImageMagick/ImageMagick.git
tar xf ImageMagick.tar.gz 
cd ImageMagick-7*
./configure --with-heic=yes
make -j$(nproc)  
make install  
ldconfig

The fix

Offline

 

#20 2023-12-31 14:06:48

cryopad
Piwigo Team
Grenoble, France
2015-11-01
196

Re: Piwigo 14.0.0.0 beta 3 HEIC files

nickpg wrote:

I got it working! =D

Nickel !


If you enjoy Piwigo for iOS…
➤ We would appreciate an AppStore review.
➤ Comments, suggestions ? Tell us on GitHub…
➤ Not yet available in your language ? Help us translate it…

Offline

 

#21 2024-02-14 03:10:55

truckerboy18
Member
2019-10-14
4

Re: Piwigo 14.0.0.0 beta 3 HEIC files

confirmed this works well for new uploads.
Now how do I fix this problem for HEIC files I already uploaded to the piwigo server?

Piwigo 14.2.0
Operating system: Linux
PHP: 7.4.3-4ubuntu2.19 (Show info) [2024-02-13 21:09:51]
MySQL: 5.5.5-10.3.39-MariaDB-0ubuntu0.20.04.2 [2024-02-13 21:09:51]
Graphics Library: External ImageMagick 7.1.1-28

Last edited by truckerboy18 (2024-02-14 03:11:32)

Offline

 

Board footer

Powered by FluxBB

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