|
|
|
@ -221,8 +221,9 @@ class GDWrapper extends ImageWrapper { |
|
|
|
|
if ($handler) { |
|
|
|
|
$this->image_validated = true; |
|
|
|
|
$this->bg = $handler; |
|
|
|
|
@imagealphablending($this->bg, true); |
|
|
|
|
} |
|
|
|
|
@imagealphablending($this->bg, false); |
|
|
|
|
@imagesavealpha($this->bg, true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function get_image_size() { |
|
|
|
@ -260,6 +261,8 @@ class GDWrapper extends ImageWrapper { |
|
|
|
|
$deltaw = (int)(($thumbw - $width) / 2); |
|
|
|
|
$deltah = (int)(($thumbh - $height) / 2); |
|
|
|
|
$dst_img = @ImageCreateTrueColor($thumbw, $thumbh); |
|
|
|
|
@imagealphablending($dst_img, false); |
|
|
|
|
@imagesavealpha($dst_img, true); |
|
|
|
|
if (!empty($this->color)) { |
|
|
|
|
@imagefill($dst_img, 0, 0, $this->color); |
|
|
|
|
} |
|
|
|
@ -277,6 +280,8 @@ class GDWrapper extends ImageWrapper { |
|
|
|
|
$deltaw = 0; |
|
|
|
|
$deltah = 0; |
|
|
|
|
$dst_img = @ImageCreateTrueColor($width, $height); |
|
|
|
|
@imagealphablending($dst_img, false); |
|
|
|
|
@imagesavealpha($dst_img, true); |
|
|
|
|
$this->width = $width; |
|
|
|
|
$this->height = $height; |
|
|
|
|
} |
|
|
|
|