mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-01 14:00:08 +02:00
prepare to tag v0.5
This commit is contained in:
12
CImage.php
12
CImage.php
@@ -1249,13 +1249,13 @@ class CImage
|
|||||||
imagejpeg($this->image, $this->cacheFileName, $this->quality);
|
imagejpeg($this->image, $this->cacheFileName, $this->quality);
|
||||||
|
|
||||||
// Use JPEG optimize if defined
|
// Use JPEG optimize if defined
|
||||||
if ($this->jpegOptimize) {
|
if ($this->jpegOptimizeCmd) {
|
||||||
if ($this->verbose) {
|
if ($this->verbose) {
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
$this->log("Filesize before optimize: " . filesize($this->cacheFileName) . " bytes.");
|
$this->log("Filesize before optimize: " . filesize($this->cacheFileName) . " bytes.");
|
||||||
}
|
}
|
||||||
$res = array();
|
$res = array();
|
||||||
$cmd = $this->jpegOptimize . " -outfile $this->cacheFileName $this->cacheFileName";
|
$cmd = $this->jpegOptimizeCmd . " -outfile $this->cacheFileName $this->cacheFileName";
|
||||||
exec($cmd, $res);
|
exec($cmd, $res);
|
||||||
$this->log($cmd);
|
$this->log($cmd);
|
||||||
$this->log($res);
|
$this->log($res);
|
||||||
@@ -1278,26 +1278,26 @@ class CImage
|
|||||||
imagepng($this->image, $this->cacheFileName, $this->compress);
|
imagepng($this->image, $this->cacheFileName, $this->compress);
|
||||||
|
|
||||||
// Use external program to filter PNG, if defined
|
// Use external program to filter PNG, if defined
|
||||||
if ($this->pngFilter) {
|
if ($this->pngFilterCmd) {
|
||||||
if ($this->verbose) {
|
if ($this->verbose) {
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
$this->Log("Filesize before filter optimize: " . filesize($this->cacheFileName) . " bytes.");
|
$this->Log("Filesize before filter optimize: " . filesize($this->cacheFileName) . " bytes.");
|
||||||
}
|
}
|
||||||
$res = array();
|
$res = array();
|
||||||
$cmd = $this->pngFilter . " $this->cacheFileName";
|
$cmd = $this->pngFilterCmd . " $this->cacheFileName";
|
||||||
exec($cmd, $res);
|
exec($cmd, $res);
|
||||||
$this->Log($cmd);
|
$this->Log($cmd);
|
||||||
$this->Log($res);
|
$this->Log($res);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use external program to deflate PNG, if defined
|
// Use external program to deflate PNG, if defined
|
||||||
if ($this->pngDeflate) {
|
if ($this->pngDeflateCmd) {
|
||||||
if ($this->verbose) {
|
if ($this->verbose) {
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
$this->Log("Filesize before deflate optimize: " . filesize($this->cacheFileName) . " bytes.");
|
$this->Log("Filesize before deflate optimize: " . filesize($this->cacheFileName) . " bytes.");
|
||||||
}
|
}
|
||||||
$res = array();
|
$res = array();
|
||||||
$cmd = $this->pngDeflate . " $this->cacheFileName";
|
$cmd = $this->pngDeflateCmd . " $this->cacheFileName";
|
||||||
exec($cmd, $res);
|
exec($cmd, $res);
|
||||||
$this->Log($cmd);
|
$this->Log($cmd);
|
||||||
$this->Log($res);
|
$this->Log($res);
|
||||||
|
@@ -26,7 +26,7 @@ This is free software and open source software, licensed according MIT.
|
|||||||
Installation and get going
|
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
|
```bash
|
||||||
git clone git://github.com/mosbth/cimage.git
|
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.
|
* This version is supporting PHP 5.3, later versions will require 5.5 or later.
|
||||||
* Using GitHub issue tracking for feature requests and planning.
|
* Using GitHub issue tracking for feature requests and planning.
|
||||||
* Rewrote [the manual](http://dbwebb.se/opensource/cimage).
|
* Rewrote [the manual](http://dbwebb.se/opensource/cimage).
|
||||||
|
* Created directory `webroot` and moved some files there.
|
||||||
|
|
||||||
|
|
||||||
v0.4.1 (2014-01-27)
|
v0.4.1 (2014-01-27)
|
||||||
|
Reference in New Issue
Block a user