This is not a PDF, there are no pages

This commit is contained in:
Olivier Paroz 2014-09-03 12:32:59 +02:00
parent b559b21dc3
commit 3bf155e138

View file

@ -26,7 +26,7 @@ if (extension_loaded('imagick')) {
//create imagick object from TIFF
try{
$tiff = new Imagick($tmpPath . '[0]');
$tiff = new Imagick($tmpPath);
$tiff->setImageFormat('png');
} catch (\Exception $e) {
\OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR);