123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace OC\Preview;
- use OCP\Files\File;
- use OCP\IImage;
- class OpenDocument extends Bundled {
-
- public function getMimeType(): string {
- return '/application\/vnd.oasis.opendocument.*/';
- }
-
- public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
- $image = $this->extractThumbnail($file, 'Thumbnails/thumbnail.png');
- if (($image !== null) && $image->valid()) {
- return $image;
- }
- return null;
- }
- }
|