v0.1 Fix exif data function just for jpeg and Fix config in index.blade for mimetype_blacklist

This commit is contained in:
Miloš Holba
2020-09-15 10:33:39 +02:00
committed by Peter Papp
parent 8b8562916b
commit de62ab535c
3 changed files with 79 additions and 66 deletions

View File

@@ -531,7 +531,7 @@ function get_pretty_name($basename, $name, $mimetype)
}
function get_image_meta_data($file)
{
if(get_file_type($file->getMimeType()) === 'image') {
if(get_file_type_from_mimetype($file->getMimeType()) === 'jpeg') {
return exif_read_data($file);
}
}