diff --git a/REVISION.md b/REVISION.md index d6772e2..d202786 100644 --- a/REVISION.md +++ b/REVISION.md @@ -5,6 +5,12 @@ Revision history [![Build Status](https://scrutinizer-ci.com/g/mosbth/cimage/badges/build.png?b=master)](https://scrutinizer-ci.com/g/mosbth/cimage/build-status/master) +v0.7.6* (2015-10-18) +------------------------------------- + +* Add check for postprocessing tools in path in `webroot/check_system.php`, #104. + + v0.7.6 (2015-10-18) ------------------------------------- diff --git a/webroot/check_system.php b/webroot/check_system.php index 6af2b68..fb6ea28 100644 --- a/webroot/check_system.php +++ b/webroot/check_system.php @@ -4,6 +4,12 @@ echo 'Current PHP version: ' . phpversion() . '

'; echo 'Running on: ' . $_SERVER['SERVER_SOFTWARE'] . '

'; +$no = extension_loaded('exif') ? null : 'NOT'; +echo "Extension exif is $no loaded.
"; + +$no = extension_loaded('curl') ? null : 'NOT'; +echo "Extension curl is $no loaded.
"; + $no = extension_loaded('gd') ? null : 'NOT'; echo "Extension gd is $no loaded.
"; @@ -11,8 +17,13 @@ if (!$no) { echo "
", var_dump(gd_info()), "
"; } -$no = extension_loaded('exif') ? null : 'NOT'; -echo "Extension exif is $no loaded.
"; +echo "Checking path for postprocessing tools"; -$no = extension_loaded('curl') ? null : 'NOT'; -echo "Extension curl is $no loaded.
"; +echo "
optipng: "; +system("which optipng"); + +echo "
pngout: "; +system("which pngout"); + +echo "
jpegtran: "; +system("which jpegtran"); diff --git a/webroot/img.php b/webroot/img.php index 5ebf0de..d2509c6 100644 --- a/webroot/img.php +++ b/webroot/img.php @@ -8,7 +8,7 @@ * */ -$version = "v0.7.6 (2015-10-18)"; +$version = "v0.7.6* (2015-10-18)"; diff --git a/webroot/img_config.php b/webroot/img_config.php index 87ac152..4e3bc33 100644 --- a/webroot/img_config.php +++ b/webroot/img_config.php @@ -110,8 +110,7 @@ return array( /** * The name representing a dummy image which is automatically created - * and stored at the defined path. The dummy image can then be used - * inplace of an original image as a placeholder. + * and stored at the defined path. * The dummy_dir must be writable and it defaults to a subdir of the * cache directory. * Write protect the dummy_dir to prevent creation of new dummy images,