I am having trouble getting both HEIC and Video to work at the same time. I'm uploading from the iOS app.
This is from my regular configuration, where HEIC photos are getting converted to JPG correctly, and thumbnails are fine. Video (MOV) does not work and I get an error uploading from the iOS app "File format not accepted by the Piwigo server".
// picture_ext : file extensions for picture file, must be a subset of
// file_ext
$conf['picture_ext'] = array('jpg','jpeg','png','gif','webp');
// file_ext : file extensions (case sensitive) authorized
//
// * if you enable "eps" file extension, make sure you have this file type
// authorized in your ImageMagick policy
$conf['file_ext'] = array_merge(
$conf['picture_ext'],
array('tiff', 'tif', 'mpg','zip','avi','mp3','ogg','pdf','svg', 'heic')
);
// in the upload form, let users upload only picture_exts or all file_exts?
// for some file types, Piwigo will try to generate a pwg_representative
// (TIFF, videos, PDF)
$conf['upload_form_all_types'] = false;
If I change upload_form_all_types to true, then MOV videos will convert and upload fine from iOS, but then HEIC images fail. The images upload as HEIC files and cannot be displayed in a browser.
I've tried adding mp4 to picture_ext and to file_ext, but that didn't help.
How do I need to configure so that both HEIC and MOV get converted by the iOS app?
Thanks!
Environment
Piwigo 14.0.0
Installed on 11 December 2023, 3 months 4 weeks 1 day ago
Operating system: Linux
PHP: 8.1.22 (Show info) [2024-04-10 14:47:27]
MySQL: 10.5.8-MariaDB-log [2024-04-10 14:47:27]
Graphics Library: ImageMagick 7.1.0-62
Cache size 625.57 MB right now
Activated plugin list
Admin Tools
Community
LocalFiles Editor
ShareAlbum
VideoJS
Offline
If in your hostname the extension file is not actived
Its not working
Try with in phpinfo
Last edited by k5 (2024-04-10 21:48:54)
Offline
I'm sorry, I don't understand what you mean. Can you elaborate?
Offline
I have the same problem, did you ever resolve it?
Offline