This commit is contained in:
2019-10-08 01:54:04 -07:00
parent d255172a62
commit d86b4852f9
9 changed files with 14 additions and 15 deletions

View File

@@ -17,6 +17,7 @@ $bin_qltool = __DIR__."/bin/qltool";
$bin_sox = __DIR__."/bin/sox";
$bin_pngquant = __DIR__."/bin/pngquant";
$bin_parallel = __DIR__."/bin/parallel";
$bin_convert = __DIR__."/bin/convert";
// System tools
$bin_php = "php";
@@ -24,12 +25,10 @@ $bin_qlmanage = "qlmanage";
$bin_sips = "sips";
// External tools
$bin_convert = "/opt/local/bin/convert";
$bin_vips = "/opt/local/bin/vipsthumbnail";
//////////////////////////////////////////////////////////////////////
if (empty(shell_exec("which ".$bin_convert))) { echo "Binary not found: ".$bin_convert."\n"; }
if (empty(shell_exec("which ".$bin_vips))) { echo "Binary not found: ".$bin_vips."\n"; }
if (empty($argv[2])) { echo "Nothing dragged"; die; }