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:
@@ -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) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user