image: minor fixes to multipreview

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/474/head
Varun Patil 2023-03-11 00:05:49 -08:00
parent af29e344a0
commit fcd68a5172
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class ImageController extends ApiBase
// For checking max previews
$previewRoot = new \OC\Preview\Storage\Root(
\OC::$server->get(IRootFolder::class),
\OC::$server->getSystemConfig(),
\OC::$server->get(\OC\SystemConfig::class),
);
// stream the response
@ -145,7 +145,7 @@ class ImageController extends ApiBase
}
// Add this preview to the response
$preview = $previewManager->getPreview($file, $x, $y, !$a, 'fill');
$preview = $previewManager->getPreview($file, $x, $y, !$a, \OCP\IPreview::MODE_FILL);
$content = $preview->getContent();
if (empty($content)) {
continue;