diff --git a/README.md b/README.md index 4c40fe9..96a9258 100644 --- a/README.md +++ b/README.md @@ -45,14 +45,14 @@ There are several ways of installing. You either install the whole project which The [sourcode is available on GitHub](https://github.com/mosbth/cimage). Clone, fork or [download as zip](https://github.com/mosbth/cimage/archive/master.zip). -**Latest stable version is v0.7.5 released 2015-10-18.** +**Latest stable version is v0.7.6 released 2015-10-18.** I prefer cloning like this. Do switch to the latest stable version. ```bash git clone git://github.com/mosbth/cimage.git cd cimage -git checkout v0.7.5 +git checkout v0.7.6 ``` Make the cache-directory writable by the webserver. @@ -75,7 +75,7 @@ There are some all-included bundles of `img.php` that can be downloaded and used Dowload the version of your choice like this. ```bash -wget https://github.com/mosbth/cimage/tree/v0.7.5/webroot/imgp.php +wget https://github.com/mosbth/cimage/tree/v0.7.6/webroot/imgp.php ``` Open up the file in your editor and edit the array `$config`. Ensure that the paths to the image directory and the cache directory matches your environment, or create an own config-file for the script. diff --git a/REVISION.md b/REVISION.md index 8a8a4af..d6772e2 100644 --- a/REVISION.md +++ b/REVISION.md @@ -5,6 +5,13 @@ 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) +------------------------------------- + +* Adding testpage for dummy images `webroot/test/test_issue101-dummy.php`. +* Adding width and height when creating dummy image. + + v0.7.5 (2015-10-18) ------------------------------------- diff --git a/webroot/img.php b/webroot/img.php index 6c33167..5ebf0de 100644 --- a/webroot/img.php +++ b/webroot/img.php @@ -8,7 +8,7 @@ * */ -$version = "v0.7.5 (2015-10-18)"; +$version = "v0.7.6 (2015-10-18)"; @@ -962,9 +962,13 @@ if ($dummyImage === true) { ->setSource($dummyFilename, $dummyDir) ->setOptions( array( - 'bgColor' => $bgColor, + 'newWidth' => $newWidth, + 'newHeight' => $newHeight, + 'bgColor' => $bgColor, ) ) + ->setJpegQuality($quality) + ->setPngCompression($compress) ->createDummyImage() ->generateFilename(null, false) ->save(null, null, false); diff --git a/webroot/imgd.php b/webroot/imgd.php index de333f9..062e5dd 100644 --- a/webroot/imgd.php +++ b/webroot/imgd.php @@ -3481,7 +3481,7 @@ EOD; * */ -$version = "v0.7.5 (2015-10-18)"; +$version = "v0.7.6 (2015-10-18)"; @@ -4435,9 +4435,13 @@ if ($dummyImage === true) { ->setSource($dummyFilename, $dummyDir) ->setOptions( array( - 'bgColor' => $bgColor, + 'newWidth' => $newWidth, + 'newHeight' => $newHeight, + 'bgColor' => $bgColor, ) ) + ->setJpegQuality($quality) + ->setPngCompression($compress) ->createDummyImage() ->generateFilename(null, false) ->save(null, null, false); diff --git a/webroot/imgp.php b/webroot/imgp.php index 83f8b98..659301a 100644 --- a/webroot/imgp.php +++ b/webroot/imgp.php @@ -3481,7 +3481,7 @@ EOD; * */ -$version = "v0.7.5 (2015-10-18)"; +$version = "v0.7.6 (2015-10-18)"; @@ -4435,9 +4435,13 @@ if ($dummyImage === true) { ->setSource($dummyFilename, $dummyDir) ->setOptions( array( - 'bgColor' => $bgColor, + 'newWidth' => $newWidth, + 'newHeight' => $newHeight, + 'bgColor' => $bgColor, ) ) + ->setJpegQuality($quality) + ->setPngCompression($compress) ->createDummyImage() ->generateFilename(null, false) ->save(null, null, false); diff --git a/webroot/imgs.php b/webroot/imgs.php index de333f9..062e5dd 100644 --- a/webroot/imgs.php +++ b/webroot/imgs.php @@ -3481,7 +3481,7 @@ EOD; * */ -$version = "v0.7.5 (2015-10-18)"; +$version = "v0.7.6 (2015-10-18)"; @@ -4435,9 +4435,13 @@ if ($dummyImage === true) { ->setSource($dummyFilename, $dummyDir) ->setOptions( array( - 'bgColor' => $bgColor, + 'newWidth' => $newWidth, + 'newHeight' => $newHeight, + 'bgColor' => $bgColor, ) ) + ->setJpegQuality($quality) + ->setPngCompression($compress) ->createDummyImage() ->generateFilename(null, false) ->save(null, null, false); diff --git a/webroot/test/test_issue101-dummy.php b/webroot/test/test_issue101-dummy.php new file mode 100644 index 0000000..069e5b9 --- /dev/null +++ b/webroot/test/test_issue101-dummy.php @@ -0,0 +1,36 @@ +