|
@@ 839-843 (lines=5) @@
|
| 836 |
|
} |
| 837 |
|
|
| 838 |
|
// preserve transparency |
| 839 |
|
if ($this->imageType == IMAGETYPE_GIF or $this->imageType == IMAGETYPE_PNG) { |
| 840 |
|
imagecolortransparent($process, imagecolorallocatealpha($process, 0, 0, 0, 127)); |
| 841 |
|
imagealphablending($process, false); |
| 842 |
|
imagesavealpha($process, true); |
| 843 |
|
} |
| 844 |
|
|
| 845 |
|
imagecopyresampled($process, $this->resource, 0, 0, 0, 0, $width, $height, $widthOrig, $heightOrig); |
| 846 |
|
if ($process == false) { |
|
@@ 897-901 (lines=5) @@
|
| 894 |
|
} |
| 895 |
|
|
| 896 |
|
// preserve transparency |
| 897 |
|
if ($this->imageType == IMAGETYPE_GIF or $this->imageType == IMAGETYPE_PNG) { |
| 898 |
|
imagecolortransparent($process, imagecolorallocatealpha($process, 0, 0, 0, 127)); |
| 899 |
|
imagealphablending($process, false); |
| 900 |
|
imagesavealpha($process, true); |
| 901 |
|
} |
| 902 |
|
|
| 903 |
|
imagecopyresampled($process, $this->resource, 0, 0, $x, $y, $targetWidth, $targetHeight, $width, $height); |
| 904 |
|
if ($process == false) { |
|
@@ 936-940 (lines=5) @@
|
| 933 |
|
} |
| 934 |
|
|
| 935 |
|
// preserve transparency |
| 936 |
|
if ($this->imageType == IMAGETYPE_GIF or $this->imageType == IMAGETYPE_PNG) { |
| 937 |
|
imagecolortransparent($process, imagecolorallocatealpha($process, 0, 0, 0, 127)); |
| 938 |
|
imagealphablending($process, false); |
| 939 |
|
imagesavealpha($process, true); |
| 940 |
|
} |
| 941 |
|
|
| 942 |
|
imagecopyresampled($process, $this->resource, 0, 0, $x, $y, $w, $h, $w, $h); |
| 943 |
|
if ($process == false) { |