aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-01-28 11:04:17 +0100
committerSimon L <szaimen@e.mail.de>2023-01-28 11:23:59 +0100
commita704619ea493f528fb857a57d34ce0990546635e (patch)
tree9c609d18a3c398bc5d2b8dd00980b627771ae99d /lib
parent4ae17a04ebe0dc09a5a1c09ff2d368ba3cfd1554 (diff)
downloadnextcloud-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.php4
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();