Generación de thumbnails para imágenes PNG y JPEG.
(Sacado del foro -> http://forums.knowledgetree.org/viewtopic.php?f=8&t=19932) git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@4 eb19766c-00d9-a042-a3a0-45cb8ec72764
This commit is contained in:
parent
00a77be7c9
commit
bce2a10d83
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user