From 0ab7cf7e1b3fc9620001da913f586898740b53f8 Mon Sep 17 00:00:00 2001 From: Mikael Roos Date: Wed, 12 Feb 2014 15:09:29 +0100 Subject: [PATCH] prepare to tag v0.5 --- CImage.php | 12 ++++++------ README.md | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CImage.php b/CImage.php index 3096a53..9a3dcc5 100644 --- a/CImage.php +++ b/CImage.php @@ -1249,13 +1249,13 @@ class CImage imagejpeg($this->image, $this->cacheFileName, $this->quality); // Use JPEG optimize if defined - if ($this->jpegOptimize) { + if ($this->jpegOptimizeCmd) { if ($this->verbose) { clearstatcache(); $this->log("Filesize before optimize: " . filesize($this->cacheFileName) . " bytes."); } $res = array(); - $cmd = $this->jpegOptimize . " -outfile $this->cacheFileName $this->cacheFileName"; + $cmd = $this->jpegOptimizeCmd . " -outfile $this->cacheFileName $this->cacheFileName"; exec($cmd, $res); $this->log($cmd); $this->log($res); @@ -1278,26 +1278,26 @@ class CImage imagepng($this->image, $this->cacheFileName, $this->compress); // Use external program to filter PNG, if defined - if ($this->pngFilter) { + if ($this->pngFilterCmd) { if ($this->verbose) { clearstatcache(); $this->Log("Filesize before filter optimize: " . filesize($this->cacheFileName) . " bytes."); } $res = array(); - $cmd = $this->pngFilter . " $this->cacheFileName"; + $cmd = $this->pngFilterCmd . " $this->cacheFileName"; exec($cmd, $res); $this->Log($cmd); $this->Log($res); } // Use external program to deflate PNG, if defined - if ($this->pngDeflate) { + if ($this->pngDeflateCmd) { if ($this->verbose) { clearstatcache(); $this->Log("Filesize before deflate optimize: " . filesize($this->cacheFileName) . " bytes."); } $res = array(); - $cmd = $this->pngDeflate . " $this->cacheFileName"; + $cmd = $this->pngDeflateCmd . " $this->cacheFileName"; exec($cmd, $res); $this->Log($cmd); $this->Log($res); diff --git a/README.md b/README.md index 43c7c33..c23fbb4 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This is free software and open source software, licensed according MIT. Installation and get going ------------------------------------- -**Latest stable version is v0.5 released 2014-02-11.** +**Latest stable version is v0.5 released 2014-02-12.** ```bash git clone git://github.com/mosbth/cimage.git @@ -142,6 +142,7 @@ v0.5 (2014-02-07) * This version is supporting PHP 5.3, later versions will require 5.5 or later. * Using GitHub issue tracking for feature requests and planning. * Rewrote [the manual](http://dbwebb.se/opensource/cimage). +* Created directory `webroot` and moved some files there. v0.4.1 (2014-01-27)