|
@@ 2949-2953 (lines=5) @@
|
| 2946 |
|
$this->DebugMessage('AlphaChannelFlatten() set image to 255+1 colors with transparency for GIF output', __FILE__, __LINE__); |
| 2947 |
|
|
| 2948 |
|
return true; |
| 2949 |
|
} else { |
| 2950 |
|
$this->DebugMessage('AlphaChannelFlatten() failed ImageCreate(' . imagesx($this->gdimg_output) . ', ' . imagesy($this->gdimg_output) . ')', __FILE__, __LINE__); |
| 2951 |
|
|
| 2952 |
|
return false; |
| 2953 |
|
} |
| 2954 |
|
} else { |
| 2955 |
|
// a single transparent color already defined, leave as-is |
| 2956 |
|
$this->DebugMessage('skipping AlphaChannelFlatten() because ($this->thumbnailFormat == "' |
|
@@ 3247-3249 (lines=3) @@
|
| 3244 |
|
$this->DebugMessage('phpthumb_functions::ImageCreateFunction(' . $resized_x . ', ' . $resized_y . ')', __FILE__, __LINE__); |
| 3245 |
|
} |
| 3246 |
|
imagedestroy($img_watermark_resized); |
| 3247 |
|
} else { |
| 3248 |
|
$this->DebugMessage('phpthumb_functions::ImageCreateFunction(' . imagesx($this->gdimg_output) . ', ' . imagesy($this->gdimg_output) . ')', __FILE__, __LINE__); |
| 3249 |
|
} |
| 3250 |
|
} else { // overlay |
| 3251 |
|
|
| 3252 |
|
if ($img_watermark_resized = phpthumb_functions::ImageCreateFunction($resized_x, $resized_y)) { |
|
@@ 3439-3441 (lines=3) @@
|
| 3436 |
|
$this->DebugMessage('ImageCreateFunction(' . ($scale_x * imagesx($img_temp)) . ', ' . ($scale_y * imagesy($img_temp)) . ') failed', __FILE__, __LINE__); |
| 3437 |
|
} |
| 3438 |
|
imagedestroy($img_temp); |
| 3439 |
|
} else { |
| 3440 |
|
$this->DebugMessage('ImageCreateFunction(' . imagesx($this->gdimg_output) . ', ' . imagesy($this->gdimg_output) . ') failed', __FILE__, __LINE__); |
| 3441 |
|
} |
| 3442 |
|
} |
| 3443 |
|
break; |
| 3444 |
|
|