image: minor fixes to multipreview
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/474/head
parent
af29e344a0
commit
fcd68a5172
|
@ -101,7 +101,7 @@ class ImageController extends ApiBase
|
||||||
// For checking max previews
|
// For checking max previews
|
||||||
$previewRoot = new \OC\Preview\Storage\Root(
|
$previewRoot = new \OC\Preview\Storage\Root(
|
||||||
\OC::$server->get(IRootFolder::class),
|
\OC::$server->get(IRootFolder::class),
|
||||||
\OC::$server->getSystemConfig(),
|
\OC::$server->get(\OC\SystemConfig::class),
|
||||||
);
|
);
|
||||||
|
|
||||||
// stream the response
|
// stream the response
|
||||||
|
@ -145,7 +145,7 @@ class ImageController extends ApiBase
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add this preview to the response
|
// 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();
|
$content = $preview->getContent();
|
||||||
if (empty($content)) {
|
if (empty($content)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue