diff options
author | Simon L <szaimen@e.mail.de> | 2023-01-28 11:04:17 +0100 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2023-01-28 11:23:59 +0100 |
commit | a704619ea493f528fb857a57d34ce0990546635e (patch) | |
tree | 9c609d18a3c398bc5d2b8dd00980b627771ae99d /lib | |
parent | 4ae17a04ebe0dc09a5a1c09ff2d368ba3cfd1554 (diff) | |
download | nextcloud-server-a704619ea493f528fb857a57d34ce0990546635e.tar.gz nextcloud-server-a704619ea493f528fb857a57d34ce0990546635e.zip |
try to fix the exif_read_data issue
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Metadata/Provider/ExifProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Metadata/Provider/ExifProvider.php b/lib/private/Metadata/Provider/ExifProvider.php index 02024bd3877..ae2c57ba7e5 100644 --- a/lib/private/Metadata/Provider/ExifProvider.php +++ b/lib/private/Metadata/Provider/ExifProvider.php @@ -56,10 +56,10 @@ class ExifProvider implements IMetadataProvider { // But I don't understand why 1 as a special meaning. // Revert right after reading the exif data. $oldBufferSize = stream_set_chunk_size($fileDescriptor, 1); - $data = exif_read_data($fileDescriptor, 'ANY_TAG', true); + $data = @exif_read_data($fileDescriptor, 'ANY_TAG', true); stream_set_chunk_size($fileDescriptor, $oldBufferSize); } catch (\Exception $ex) { - $this->logger->warning("Couldn't extract metadata for ".$file->getId(), ['exception' => $ex]); + $this->logger->info("Couldn't extract metadata for ".$file->getId(), ['exception' => $ex]); } $size = new FileMetadata(); |