Skip to content

Commit

Permalink
Merge pull request #38084 from nextcloud/backport/37148/stable25
Browse files Browse the repository at this point in the history
[stable25] increase imaginary timeouts as for big files the processing could take very long
  • Loading branch information
szaimen authored May 5, 2023
2 parents 3e8acc0 + 6445a83 commit efd8d49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
'content-type' => $file->getMimeType(),
'body' => $stream,
'nextcloud' => ['allow_local_address' => true],
'timeout' => 120,
'connect_timeout' => 3,
]);
} catch (\Exception $e) {
$this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [
Expand Down

0 comments on commit efd8d49

Please sign in to comment.