|
@@ 1722-1729 (lines=8) @@
|
| 1719 |
|
$this->ImageWrite($im, $theFile); |
| 1720 |
|
$theNewFile = $this->imageMagickConvert($theFile, $this->gifExtension, $conf['width'], $conf['height'], $conf['params']); |
| 1721 |
|
$tmpImg = $this->imageCreateFromFile($theNewFile[3]); |
| 1722 |
|
if ($tmpImg) { |
| 1723 |
|
imagedestroy($im); |
| 1724 |
|
$im = $tmpImg; |
| 1725 |
|
$this->w = imagesx($im); |
| 1726 |
|
$this->h = imagesy($im); |
| 1727 |
|
// Clears workArea to total image |
| 1728 |
|
$this->setWorkArea(''); |
| 1729 |
|
} |
| 1730 |
|
unlink($theFile); |
| 1731 |
|
if ($theNewFile[3] && $theNewFile[3] != $theFile) { |
| 1732 |
|
unlink($theNewFile[3]); |
|
@@ 2607-2612 (lines=6) @@
|
| 2604 |
|
$this->ImageWrite($im, $theFile); |
| 2605 |
|
$this->imageMagickExec($theFile, $theFile, $command); |
| 2606 |
|
$tmpImg = $this->imageCreateFromFile($theFile); |
| 2607 |
|
if ($tmpImg) { |
| 2608 |
|
imagedestroy($im); |
| 2609 |
|
$im = $tmpImg; |
| 2610 |
|
$this->w = imagesx($im); |
| 2611 |
|
$this->h = imagesy($im); |
| 2612 |
|
} |
| 2613 |
|
unlink($theFile); |
| 2614 |
|
} |
| 2615 |
|
|