1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-04 07:07:32 +02:00

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

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

View File

@@ -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) [![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) v0.7.6 (2015-10-18)
------------------------------------- -------------------------------------

View File

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

View File

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

View File

@@ -110,8 +110,7 @@ return array(
/** /**
* The name representing a dummy image which is automatically created * The name representing a dummy image which is automatically created
* and stored at the defined path. The dummy image can then be used * and stored at the defined path.
* inplace of an original image as a placeholder.
* The dummy_dir must be writable and it defaults to a subdir of the * The dummy_dir must be writable and it defaults to a subdir of the
* cache directory. * cache directory.
* Write protect the dummy_dir to prevent creation of new dummy images, * Write protect the dummy_dir to prevent creation of new dummy images,