|
|
|
|
|
|
|
|
* - OC\Preview\Illustrator |
|
|
* - OC\Preview\Illustrator |
|
|
* - OC\Preview\Postscript |
|
|
* - OC\Preview\Postscript |
|
|
* - OC\Preview\Photoshop |
|
|
* - OC\Preview\Photoshop |
|
|
|
|
|
* - OC\Preview\Font |
|
|
*/ |
|
|
*/ |
|
|
if(empty(self::$enabledProviders)) { |
|
|
if(empty(self::$enabledProviders)) { |
|
|
self::$enabledProviders = \OC::$server->getConfig()->getSystemValue('enabledPreviewProviders', array( |
|
|
self::$enabledProviders = \OC::$server->getConfig()->getSystemValue('enabledPreviewProviders', array( |
|
|
|
|
|
|
|
|
'PDF' => 'OC\Preview\PDF', |
|
|
'PDF' => 'OC\Preview\PDF', |
|
|
'AI' => 'OC\Preview\Illustrator', |
|
|
'AI' => 'OC\Preview\Illustrator', |
|
|
'PSD' => 'OC\Preview\Photoshop', |
|
|
'PSD' => 'OC\Preview\Photoshop', |
|
|
// Requires adding 'eps' => array('application/postscript', null), to lib/private/mimetypes.list.php |
|
|
|
|
|
'EPS' => 'OC\Preview\Postscript', |
|
|
'EPS' => 'OC\Preview\Postscript', |
|
|
|
|
|
'TTF' => 'OC\Preview\Font', |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
foreach ($imagickProviders as $queryFormat => $provider) { |
|
|
foreach ($imagickProviders as $queryFormat => $provider) { |