use ppt icon instead of preview

This commit is contained in:
Georg Ehrke 2013-06-18 13:53:02 +02:00
parent bea4376fd4
commit cc478d2f48
1 changed files with 4 additions and 17 deletions

View File

@ -14,7 +14,7 @@ class DOC extends Provider {
}
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
require_once();
}
}
@ -105,6 +105,7 @@ class XLSX extends MSOfficeExcel {
\OC\Preview::registerProvider('OC\Preview\XLSX');
/* //There is no (good) php-only solution for converting powerpoint documents to pdfs / pngs ...
class MSOfficePowerPoint extends Provider {
public function getMimeType() {
@ -113,21 +114,6 @@ class MSOfficePowerPoint extends Provider {
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
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');
*/