the convert constant setting for inmage magick is now in config.other as it is no longer core Also add the base Progress and functions perl modules for central tagging. We will add config.pm, import_functions.pm, layout.pm and a basic test script later too
29 lines
716 B
PHP
Executable File
29 lines
716 B
PHP
Executable File
<?php declare(strict_types=1);
|
|
/********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* CREATED: 2019/10/28
|
|
* SHORT DESCRIPTION:
|
|
* other global constant variables
|
|
* HISTORY:
|
|
*********************************************************************/
|
|
|
|
// DEFINE('SOME_ID', <SOME VALUE>);
|
|
|
|
/************* CONVERT *******************/
|
|
// this only needed if the external thumbnail create is used
|
|
$paths = array(
|
|
'/bin',
|
|
'/usr/bin',
|
|
'/usr/local/bin'
|
|
);
|
|
// find convert
|
|
foreach ($paths as $path) {
|
|
if (file_exists($path.DS.'convert') && is_file($path.DS.'convert')) {
|
|
// image magick convert location
|
|
DEFINE('CONVERT', $path.DS.'convert');
|
|
}
|
|
}
|
|
unset($paths);
|
|
|
|
// __END__
|