|
@@ 430-435 (lines=6) @@
|
| 427 |
|
if ($this->_imgInfoOrig['type'] == 'png') |
| 428 |
|
{ |
| 429 |
|
@imagealphablending($this->_imgFinal, false); |
| 430 |
|
if(function_exists('ImageCopyResampled')) |
| 431 |
|
{ |
| 432 |
|
@imagecopyresampled($this->_imgFinal, $this->_imgOrig, 0, 0, 0, 0, $new_x, $new_y, $this->_imgInfoOrig['width'], $this->_imgInfoOrig['height']); |
| 433 |
|
} else { |
| 434 |
|
@imagecopyresized($this->_imgFinal, $this->_imgOrig, 0, 0, 0, 0, $new_x, $new_y, $this->_imgInfoOrig['width'], $this->_imgInfoOrig['height']); |
| 435 |
|
} |
| 436 |
|
@imagesavealpha($this->_imgFinal, true); |
| 437 |
|
|
| 438 |
|
}else |
|
@@ 438-446 (lines=9) @@
|
| 435 |
|
} |
| 436 |
|
@imagesavealpha($this->_imgFinal, true); |
| 437 |
|
|
| 438 |
|
}else |
| 439 |
|
{//for the rest image |
| 440 |
|
if(function_exists('ImageCopyResampled')) |
| 441 |
|
{ |
| 442 |
|
@imagecopyresampled($this->_imgFinal, $this->_imgOrig, 0, 0, 0, 0, $new_x, $new_y, $this->_imgInfoOrig['width'], $this->_imgInfoOrig['height']); |
| 443 |
|
} else { |
| 444 |
|
@imagecopyresized($this->_imgFinal, $this->_imgOrig, 0, 0, 0, 0, $new_x, $new_y, $this->_imgInfoOrig['width'], $this->_imgInfoOrig['height']); |
| 445 |
|
} |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
|
| 449 |
|
$this->_imgInfoFinal['width'] = $new_x; |