1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-05-14 04:45:21 +02:00

Add check for postprocessing tools in path in webroot/check_system.php, .

This commit is contained in:
Mikael Roos 2015-10-18 18:13:12 +02:00
parent 1bd6fc8a2c
commit 9e2bd27c6e
4 changed files with 23 additions and 7 deletions

@ -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)
-------------------------------------

@ -4,6 +4,12 @@ echo 'Current PHP version: ' . phpversion() . '<br><br>';
echo 'Running on: ' . $_SERVER['SERVER_SOFTWARE'] . '<br><br>';
$no = extension_loaded('exif') ? null : 'NOT';
echo "Extension exif is $no loaded.<br>";
$no = extension_loaded('curl') ? null : 'NOT';
echo "Extension curl is $no loaded.<br>";
$no = extension_loaded('gd') ? null : 'NOT';
echo "Extension gd is $no loaded.<br>";
@ -11,8 +17,13 @@ if (!$no) {
echo "<pre>", var_dump(gd_info()), "</pre>";
}
$no = extension_loaded('exif') ? null : 'NOT';
echo "Extension exif is $no loaded.<br>";
echo "<strong>Checking path for postprocessing tools</strong>";
$no = extension_loaded('curl') ? null : 'NOT';
echo "Extension curl is $no loaded.<br>";
echo "<br>optipng: ";
system("which optipng");
echo "<br>pngout: ";
system("which pngout");
echo "<br>jpegtran: ";
system("which jpegtran");

@ -8,7 +8,7 @@
*
*/
$version = "v0.7.6 (2015-10-18)";
$version = "v0.7.6* (2015-10-18)";

@ -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,