From 1e496c1d0ee4240d5dfe020f6b8c237fddf04de9 Mon Sep 17 00:00:00 2001 From: profiteroles Date: Tue, 7 May 2019 01:51:48 -0700 Subject: [PATCH] 0.6.3 --- leaf.php | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/leaf.php b/leaf.php index 4120fa5..96052de 100644 --- a/leaf.php +++ b/leaf.php @@ -2,7 +2,7 @@ specify dpi + -height= calculate dpi from specified height +makepdf combine images into a pdf +stripcrop strip exif crop values from images + +"; +echo $help; +fin(); + //////////////////////////////////////////////////////////////////////////////////////////////// // Review: output a table of stats on source images ////////////////////// -if (args("app") == "review") { +} elseif (args("app") == "review") { echo Welcome("List image statistics"); ///////////////////////////////////////////////////////////////////////// @@ -180,8 +201,9 @@ if (file_exists($dest)) { } echo "Creating pdf...\n\n"; exec("img2pdf --verbose --viewer-page-layout twocolumnright --output ".$dest." ".$input); +echo "\n"; msg("Press return to open in Acrobat",2); -exec("open ".$dest." -b com.adobe.Acrobat"); +exec("open ".$dest." -b com.adobe.Acrobat.Pro"); fin(); @@ -205,7 +227,7 @@ if (args("height")) { foreach ($files as $file) { echo "Processing ".$file.": "; $ext = pathinfo($file, PATHINFO_EXTENSION); - if ($height) { + if (isset($height)) { list ($imwidth, $imheight) = getimagesize($file); $x = floor($imheight/$height); } @@ -676,5 +698,8 @@ exec("open ".implode(" ",$files)." -b com.adobe.Photoshop"); // check bridge labels // for i in *; do exiftool -s -s -s -Label $i; done + +// convert to sRGB lossy +// jpegicc -q100 001-Plustek0001.jpg 001-Plustek0001_out.jpg ?> \ No newline at end of file