mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Fix missing EXIF metadata for images uploaded in HEIC format
The representative jpg file produced for image uploaded in HEIC format is used later to obtain EXIF metadata. Hence don't "strip" HEIC file metadata when corresponding representative is prepared.
This commit is contained in:
committed by
Pierrick Le Gall
parent
d0836a5c73
commit
d58dba671e
@@ -602,7 +602,7 @@ function upload_file_heic($representative_ext, $file_path)
|
||||
list($w,$h) = get_optimal_dimensions_for_representative();
|
||||
|
||||
$exec = $conf['ext_imagick_dir'].'convert';
|
||||
$exec.= ' -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -strip -resize "'.$w.'x'.$h.'>"';
|
||||
$exec.= ' -sampling-factor 4:2:0 -quality 85 -interlace JPEG -colorspace sRGB -auto-orient +repage -resize "'.$w.'x'.$h.'>"';
|
||||
$exec.= ' "'.realpath($file_path).'"';
|
||||
$exec.= ' "'.$representative_file_path.'"';
|
||||
$exec.= ' 2>&1';
|
||||
|
||||
Reference in New Issue
Block a user