mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-07 00:26:33 +02:00
crop=0,0 for whole width and height
This commit is contained in:
@@ -495,8 +495,8 @@ EOD;
|
||||
$height = $this->height;
|
||||
|
||||
if($this->crop) {
|
||||
$width = $this->crop['width'];
|
||||
$height = $this->crop['height'];
|
||||
$width = $this->crop['width'] = $this->crop['width'] == 0 ? $this->width : $this->crop['width'];
|
||||
$height = $this->crop['height'] = $this->crop['height'] == 0 ? $this->height : $this->crop['height'];
|
||||
|
||||
if($this->crop['start_x'] == 'left') {
|
||||
$this->crop['start_x'] = 0;
|
||||
|
Reference in New Issue
Block a user