create previews of attachments

This commit is contained in:
Uwe Steinmann 2021-05-11 22:13:35 +02:00
parent 813587e8c9
commit 7d34bd86b3

View File

@ -321,12 +321,18 @@ class SeedDMS_Task_Preview_Process_Folder { /* {{{ */
if($this->previewer->createPreview($version, $width, $isnew)) {
if($isnew){
$this->logger->log('Task \'preview\': created preview ('.$width.'px) for document '.$document->getId().':'.$version->getVersion(), PEAR_LOG_INFO);
echo "Preview ".$width."px for ".$document->getId().":".$version->getVersion()." created\n";
}
}
}
}
}
$files = $document->getDocumentFiles();
foreach($files as $file) {
$this->previewer->createPreview($file, $width['detail'], $isnew);
if($isnew){
$this->logger->log('Task \'preview\': created preview ('.$width.'px) for attachment of document '.$document->getId().':'.$file->getId(), PEAR_LOG_INFO);
}
}
}
}
} /* }}} */