From c0a66072b7b16fa8f0874da80dc0b6c4b75d5e8a Mon Sep 17 00:00:00 2001 From: profiteroles Date: Wed, 6 Nov 2019 10:59:15 -0800 Subject: [PATCH] 0.9.0.1 --- leaf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaf.php b/leaf.php index 2fafa8c..bfc3aa2 100644 --- a/leaf.php +++ b/leaf.php @@ -1228,7 +1228,7 @@ if (ask("Create spreads? (Y/n)") != "n") { } copy($lfile,$tmpleft); copy($rfile,$tmpright); exec("exiftool -overwrite_original -n -Orientation=".$left[2]." ".$tmpleft."; exiftool -overwrite_original -n -Orientation=".$right[2]." ".$tmpright."; "); - exec("montage -label '%f' -font Helvetica -pointsize 20 -background '#000000' -fill 'white' -define jpeg:size=1000x1000 -geometry 1000x1000+2+2 -auto-orient ".$tmpleft." ".$tmpright." /tmp/contact_sheet_".$key.".jpg"); + exec("montage -label '%f' -font Helvetica -pointsize 20 -background '#000000' -fill 'white' -define jpeg:size=1000x1000 -geometry 1000x1000+2+2 -auto-orient ".$tmpleft." ".$tmpright." ".$tmpdir."contact_sheet_".$key.".jpg"); $sheets[] = $tmpdir."contact_sheet_".$key.".jpg"; echo "."; } @@ -1419,7 +1419,7 @@ foreach ($tnfiles as $file) { $done[$file][$nfile] = 1; if ($file != $nfile && $diff < $walk && isset($done[$nfile][$file])) { echo "."; - $distance = shell_exec("compare -metric phash ".$file." ".$nfile." /tmp/diffimage 2>&1"); + $distance = shell_exec("compare -metric phash ".$file." ".$nfile." ".$tmpdir."diffimage 2>&1"); if ($distance < $threshold) { $match[] = array($file, $nfile, $distance); }