mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Merge pull request #36420 from nextcloud/enh/34958/fix-exif-log
fix the exif_read_data issue
This commit is contained in:
commit
3bfc5a4d95
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue