mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
create preview image if it doesn't exists
This commit is contained in:
parent
5a8d13e1e7
commit
05d6d9dca5
|
@ -68,6 +68,8 @@ if (!is_object($object)) {
|
|||
}
|
||||
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
|
||||
if(!$previewer->hasPreview($object))
|
||||
$previewer->createPreview($object);
|
||||
header('Content-Type: image/png');
|
||||
$previewer->getPreview($object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user