mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-09 17:46:47 +02:00
crop=0,0 for whole width and height
This commit is contained in:
@@ -495,8 +495,8 @@ EOD;
|
|||||||
$height = $this->height;
|
$height = $this->height;
|
||||||
|
|
||||||
if($this->crop) {
|
if($this->crop) {
|
||||||
$width = $this->crop['width'];
|
$width = $this->crop['width'] = $this->crop['width'] == 0 ? $this->width : $this->crop['width'];
|
||||||
$height = $this->crop['height'];
|
$height = $this->crop['height'] = $this->crop['height'] == 0 ? $this->height : $this->crop['height'];
|
||||||
|
|
||||||
if($this->crop['start_x'] == 'left') {
|
if($this->crop['start_x'] == 'left') {
|
||||||
$this->crop['start_x'] = 0;
|
$this->crop['start_x'] = 0;
|
||||||
|
@@ -89,6 +89,7 @@ v0.4.x (latest)
|
|||||||
* Always send Last-Modified-Header.
|
* Always send Last-Modified-Header.
|
||||||
* Added `htmlentities()` to verbose output.
|
* Added `htmlentities()` to verbose output.
|
||||||
* Fixed support for jpeg, not only jpg.
|
* Fixed support for jpeg, not only jpg.
|
||||||
|
* Fixed crop whole image by setting crop=0,0,0,0
|
||||||
|
|
||||||
|
|
||||||
v0.4 (2013-10-08)
|
v0.4 (2013-10-08)
|
||||||
|
Reference in New Issue
Block a user