mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 23:04:22 -05:00
also remove function
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
b2d105e7ec
commit
da2aad598e
1 changed files with 0 additions and 19 deletions
|
|
@ -214,25 +214,6 @@ class Generator {
|
|||
return $preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a small image straight away without generating a max preview first
|
||||
* Preview generated is 256x256
|
||||
*
|
||||
* @param ISimpleFile[] $previewFiles
|
||||
*
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
private function getSmallImagePreview(ISimpleFolder $previewFolder, array $previewFiles, File $file, string $mimeType, string $prefix, bool $crop): ISimpleFile {
|
||||
$width = 256;
|
||||
$height = 256;
|
||||
|
||||
try {
|
||||
return $this->getCachedPreview($previewFiles, $width, $height, $crop, $mimeType, $prefix);
|
||||
} catch (NotFoundException $e) {
|
||||
return $this->generateProviderPreview($previewFolder, $file, $width, $height, $crop, false, $mimeType, $prefix);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Acquire a semaphore of the specified id and concurrency, blocking if necessary.
|
||||
* Return an identifier of the semaphore on success, which can be used to release it via
|
||||
|
|
|
|||
Loading…
Reference in a new issue