@@ 789-793 (lines=5) @@ | ||
786 | } |
|
787 | ||
788 | // preserve transparency |
|
789 | if($this->imageType == IMAGETYPE_GIF or $this->imageType == IMAGETYPE_PNG) { |
|
790 | imagecolortransparent($process, imagecolorallocatealpha($process, 0, 0, 0, 127)); |
|
791 | imagealphablending($process, false); |
|
792 | imagesavealpha($process, true); |
|
793 | } |
|
794 | ||
795 | imagecopyresampled($process, $this->resource, 0, 0, 0, 0, $width, $height, $widthOrig, $heightOrig); |
|
796 | if ($process == false) { |
|
@@ 846-850 (lines=5) @@ | ||
843 | } |
|
844 | ||
845 | // preserve transparency |
|
846 | if($this->imageType == IMAGETYPE_GIF or $this->imageType == IMAGETYPE_PNG) { |
|
847 | imagecolortransparent($process, imagecolorallocatealpha($process, 0, 0, 0, 127)); |
|
848 | imagealphablending($process, false); |
|
849 | imagesavealpha($process, true); |
|
850 | } |
|
851 | ||
852 | imagecopyresampled($process, $this->resource, 0, 0, $x, $y, $targetWidth, $targetHeight, $width, $height); |
|
853 | if ($process == false) { |
|
@@ 886-890 (lines=5) @@ | ||
883 | } |
|
884 | ||
885 | // preserve transparency |
|
886 | if($this->imageType == IMAGETYPE_GIF or $this->imageType == IMAGETYPE_PNG) { |
|
887 | imagecolortransparent($process, imagecolorallocatealpha($process, 0, 0, 0, 127)); |
|
888 | imagealphablending($process, false); |
|
889 | imagesavealpha($process, true); |
|
890 | } |
|
891 | ||
892 | imagecopyresampled($process, $this->resource, 0, 0, $x, $y, $w, $h, $w, $h); |
|
893 | if ($process == false) { |