use ppt icon instead of preview
This commit is contained in:
parent
bea4376fd4
commit
cc478d2f48
|
@ -14,7 +14,7 @@ class DOC extends Provider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
||||||
|
require_once();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,7 @@ class XLSX extends MSOfficeExcel {
|
||||||
|
|
||||||
\OC\Preview::registerProvider('OC\Preview\XLSX');
|
\OC\Preview::registerProvider('OC\Preview\XLSX');
|
||||||
|
|
||||||
|
/* //There is no (good) php-only solution for converting powerpoint documents to pdfs / pngs ...
|
||||||
class MSOfficePowerPoint extends Provider {
|
class MSOfficePowerPoint extends Provider {
|
||||||
|
|
||||||
public function getMimeType() {
|
public function getMimeType() {
|
||||||
|
@ -113,21 +114,6 @@ class MSOfficePowerPoint extends Provider {
|
||||||
|
|
||||||
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$abspath = $fileview->toTmpFile($path);
|
|
||||||
$tmppath = \OC_Helper::tmpFile();
|
|
||||||
|
|
||||||
null;
|
|
||||||
|
|
||||||
$pdf = new \imagick($tmppath . '[0]');
|
|
||||||
$pdf->setImageFormat('jpg');
|
|
||||||
|
|
||||||
unlink($abspath);
|
|
||||||
unlink($tmppath);
|
|
||||||
|
|
||||||
$image = new \OC_Image($pdf);
|
|
||||||
|
|
||||||
return $image->valid() ? $image : false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -150,4 +136,5 @@ class PPTX extends MSOfficePowerPoint {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\OC\Preview::registerProvider('OC\Preview\PPTX');
|
\OC\Preview::registerProvider('OC\Preview\PPTX');
|
||||||
|
*/
|
Loading…
Reference in New Issue