Announcement

#1 2023-10-12 13:55:08

ronbruins
Member
2023-10-12
12

Piwigo 14.0.0.0 beta 3 HEIC files

Hello,

I have installed beta 3, but it doesn’t pick up HEIC files from my gallery.

Is there something that’s needs to be done to enable HEIC support?

Regards,
Ron

Offline

 

#2 2023-10-12 14:58:00

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13793

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Do you have the "heic" file type extension in the list of allowed extensions?

https://sandbox.piwigo.com/i?/uploads/4/y/1/4y1zzhnrnw//2023/10/12/20231012145734-34dbc4ec-la.png

Offline

 

#3 2023-10-12 15:52:49

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

No, it only shows jpg, jpeg, png, gif

Offline

 

#4 2023-10-12 16:14:22

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Ok, I found something :-)

vi ./www/local/config/config.inc.php

modified this:
// picture_ext : file extensions for picture file, must be a subset of
// file_ext
$conf['picture_ext'] = array('jpg','jpeg','png','gif', 'heic');

now it seems to pick something up.

edit: typo

Last edited by ronbruins (2023-10-12 16:22:52)

Offline

 

#5 2023-10-12 16:29:02

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Ok, that didn't work...  Now I end up with this:

Warning
: Trying to access array offset on value of type null in
/config/www/themes/modus/themeconf.inc.php
on line
303

Offline

 

#6 2023-10-12 16:34:16

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

I checked the commit on GitHub for HEIC support and found it had to be added here:

// file_ext : file extensions (case sensitive) authorized
$conf['file_ext'] = array_merge(
  $conf['picture_ext'],
  array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','svg','heic')
  );

However I see that this is related to the upload handler..
I am syncing from an existing structure, would that also allow HEIC?

Offline

 

#7 2023-10-12 17:23:00

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Hi,

Well it seems to be an oversight from my side. I am running piwigo in a docker container (13.8) and used this container to upgrade to 14b3. However this container has symlinks to config data (mapped as a volume) Also I found out that imagemagick is not installed in the container. So it seems I am back to square 1 with this as my platform isn't suitable to run 14b3

I will try a net install or a manual one to see if that works for me.

Offline

 

#8 2023-10-12 17:44:09

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Ok, I am up and running now :-)

I have installed 14b3 and see the proper config files. But...

I didn't see the 'heic' in the upload photos, just this: Allowed file types: jpg, jpeg, png, gif, webp

When I edit 'config_default.inc.php' and add 'heic' behind webp, like this:

// picture_ext : file extensions for picture file, must be a subset of
// file_ext
$conf['picture_ext'] = array('jpg','jpeg','png','gif','webp','heic');



it does upload, but that's it.. doesn't display

Offline

 

#9 2023-10-20 11:13:20

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Any idea what I’ did (went) wrong?

Offline

 

#10 2023-11-04 20:42:36

stk439
Member
2023-11-04
1

Re: Piwigo 14.0.0.0 beta 3 HEIC files

I tried this version for the support of HEIC files. It was able to sync the HEIC files but no representatives were generated. Is any third-party HEIC library required?

Offline

 

#11 2023-11-13 18:20:56

teknofile
Member
2019-06-26
2

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Really looking forward to test the HEIC support in 14.0. I built a new container using RC1 and updated my config.inc.php to allow for HEIC uploads; but seems to be broken.

The upload "happens" (data is sent via a http POST) - but I dont ever see anything written to a filesystem and the upload page seems to never 'finish'.

Uploading JPG's and PNG's look fine.

Offline

 

#12 2023-11-18 16:43:51

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13793

Re: Piwigo 14.0.0.0 beta 3 HEIC files

We need more details here to understand what's wrong.

First, about the way Piwigo should be configure to accept HEIC files. We have added the "heic" extension in the default $conf['file_ext'] array. To have it enabled in the upload form, you need to add in your local configuration file (with plugin LocalFiles Editor) :

Code:

<?php
$conf['upload_form_all_types'] = true;
?>

Now about the missing preview (or pwg_representative)...

1) what is your image library? Piwigo tells you on page [Administration > Tools > Maintenance > tab Environment]

2) in your log file (see directory _data/logs) you must have a line like this one:

[2023-11-18 16:41:19]   [INFO]  upload_file_heic, exec = convert -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -strip -resize "3000x1863>" "/home/plg/git/Piwigo/upload/2023/11/18/20231118164119-bbcb2321.heic" "././upload/2023/11/18/pwg_representative/20231118164119-bbcb2321.jpg" 2>&1

You may have a muted error when executing this command line. So it would be useful to run it manually to get the exact error. Take the "convert ..." without the ending "2>&1" :

convert -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -strip -resize "3000x1863>" "/home/plg/git/Piwigo/upload/2023/11/18/20231118164119-bbcb2321.heic" "././upload/2023/11/18/pwg_representative/20231118164119-bbcb2321.jpg"

run it and tell us what the command line output says.

Offline

 

#13 2023-11-18 16:53:00

ronbruins
Member
2023-10-12
12

Re: Piwigo 14.0.0.0 beta 3 HEIC files

I will install the RC and run the commands as above and share the details. Thanks

Offline

 

#14 2023-12-26 16:16:00

inajmi
Member
2023-12-26
1

Re: Piwigo 14.0.0.0 beta 3 HEIC files

Hi @plg

I have the same issue now and i have run the command. below is the output of the command

convert -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -strip -resize "2484x1863>" "/home/bemyacco/photos.fundays.tech/piwigo/upload/2023/12/26/20231226160157-77d2edfc.heic" "././upload/2023/12/26/pwg_representative/20231226160157-77d2edfc.jpg"
convert: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/564.
convert: no images defined `././upload/2023/12/26/pwg_representative/20231226160157-77d2edfc.jpg' @ error/convert.c/ConvertImageCommand/3235.

version details:

Piwigo 14.0.0
Installed on 26 December 2023, 2 hours ago
Operating system: Linux
PHP: 8.2.13 (Show info) [2023-12-26 15:15:27]
MySQL: 10.6.16-MariaDB-cll-lve [2023-12-26 16:15:27]
Graphics Library: External ImageMagick 6.9.10-68
Cache size 6.46 Mo   calculated 52 minutes ago

Last edited by inajmi (2023-12-26 16:16:24)

Offline

 

#15 2023-12-26 19:39:13

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13793

Re: Piwigo 14.0.0.0 beta 3 HEIC files

@inajmi

Can you run this commande line?

Code:

identify -list format|grep -i heic

Offline

 

Board footer

Powered by FluxBB

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