From bce2a10d834502155d0309c50204ef7d6b80ba6f Mon Sep 17 00:00:00 2001 From: david Date: Fri, 10 Sep 2010 17:02:41 +0000 Subject: [PATCH] =?UTF-8?q?Generaci=C3=B3n=20de=20thumbnails=20para=20im?= =?UTF-8?q?=C3=A1genes=20PNG=20y=20JPEG.=20(Sacado=20del=20foro=20->=20htt?= =?UTF-8?q?p://forums.knowledgetree.org/viewtopic.php=3Ff=3D8&t=3D19932)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@4 eb19766c-00d9-a042-a3a0-45cb8ec72764 --- plugins/thumbnails/thumbnails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/thumbnails/thumbnails.php b/plugins/thumbnails/thumbnails.php index 6a89c0d..968f6fe 100644 --- a/plugins/thumbnails/thumbnails.php +++ b/plugins/thumbnails/thumbnails.php @@ -161,7 +161,7 @@ class thumbnailGenerator extends BaseProcessor $mimeType = KTMime::getMimeTypeName($mimeTypeId); // Get the pdf source file - if the document is a pdf then use the document as the source - if($mimeType == 'application/pdf') { + if($mimeType == 'application/pdf' || $mimeType == 'image/png' || $mimeType == 'image/jpeg' ) { $pdfDir = $default->documentRoot; $pdfFile = $pdfDir . DIRECTORY_SEPARATOR . $this->document->getStoragePath(); } else {