| @@ 320-324 (lines=5) @@ | ||
| 317 | $this->_createFinalImageHandler($dst_w, $dst_h); | |
| 318 | if ($this->gdInfo['Truecolor Support']) | |
| 319 |         { | |
| 320 | if(!@imagecopyresampled($this->_imgFinal, $this->_imgOrig, 0, 0, $dst_x, $dst_y, $dst_w, $dst_h, $dst_w, $dst_h)) | |
| 321 |             	{ | |
| 322 |             		$this->_debug('Unable crop the image.'); | |
| 323 | return false; | |
| 324 | } | |
| 325 | } else | |
| 326 |         { | |
| 327 | if(!@imagecopyresized($this->_imgFinal, $this->_imgOrig, 0, 0, $dst_x, $dst_y, $dst_w, $dst_h, $dst_w, $dst_h)) | |
| @@ 325-333 (lines=9) @@ | ||
| 322 |             		$this->_debug('Unable crop the image.'); | |
| 323 | return false; | |
| 324 | } | |
| 325 | } else | |
| 326 |         { | |
| 327 | if(!@imagecopyresized($this->_imgFinal, $this->_imgOrig, 0, 0, $dst_x, $dst_y, $dst_w, $dst_h, $dst_w, $dst_h)) | |
| 328 |           	{ | |
| 329 |            		$this->_debug('Unable crop the image.'); | |
| 330 | return false; | |
| 331 | } | |
| 332 | ||
| 333 | } | |
| 334 | $this->_imgInfoFinal['width'] = $dst_w; | |
| 335 | $this->_imgInfoFinal['height'] = $dst_h; | |
| 336 | return true; | |