1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

fix(media): fix Media exif_read_data warning - File not supported #464

This commit is contained in:
Awilum
2020-08-25 11:33:49 +03:00
parent 2799d27f0c
commit e7d5832a42

View File

@@ -55,7 +55,7 @@ class MediaFiles
*/
public function __construct()
{
}
/**
@@ -200,12 +200,15 @@ class MediaFiles
// destroy
$img->destroy();
$headers = exif_read_data($filename);
$exif_data = [];
foreach ($headers['COMPUTED'] as $header => $value) {
$exif_data[$header] = $value;
try {
$headers = exif_read_data($filename);
foreach ($headers['COMPUTED'] as $header => $value) {
$exif_data[$header] = $value;
}
} catch (\Exception $e) {
}
}