solved error for get exif data

This commit is contained in:
Milos Holba
2021-01-28 11:21:23 +01:00
parent 2112fe879b
commit fdd8f16384
3 changed files with 16 additions and 24 deletions
+10 -3
View File
@@ -560,9 +560,16 @@ function get_image_meta_data($file)
{
if (get_file_type_from_mimetype($file->getMimeType()) === 'jpeg') {
return mb_convert_encoding(
exif_read_data($file), 'UTF8', 'UTF8'
);
try {
// Try to get the exif data
return mb_convert_encoding(Image::make($file->getRealPath())->exif(),'UTF8', 'UTF8');
} catch ( \Exception $e) {
return null;
}
}
}
+1 -1
View File
@@ -29,7 +29,7 @@ class Editor
/**
* Store folder icon
*
* @param $folder_iconL
* @param $folder_icon
* @param $unique_id
* @param $shared
*/