Skip to content

Commit a704619

Browse files
committed
try to fix the exif_read_data issue
Signed-off-by: Simon L <[email protected]>
1 parent 4ae17a0 commit a704619

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Metadata/Provider/ExifProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public function execute(File $file): array {
5656
// But I don't understand why 1 as a special meaning.
5757
// Revert right after reading the exif data.
5858
$oldBufferSize = stream_set_chunk_size($fileDescriptor, 1);
59-
$data = exif_read_data($fileDescriptor, 'ANY_TAG', true);
59+
$data = @exif_read_data($fileDescriptor, 'ANY_TAG', true);
6060
stream_set_chunk_size($fileDescriptor, $oldBufferSize);
6161
} catch (\Exception $ex) {
62-
$this->logger->warning("Couldn't extract metadata for ".$file->getId(), ['exception' => $ex]);
62+
$this->logger->info("Couldn't extract metadata for ".$file->getId(), ['exception' => $ex]);
6363
}
6464

6565
$size = new FileMetadata();

0 commit comments

Comments
 (0)