|
@@ 2602-2605 (lines=4) @@
|
| 2599 |
|
$this->DebugMessage('AlphaChannelFlatten() set image to 255+1 colors with transparency for GIF output', __FILE__, __LINE__); |
| 2600 |
|
return true; |
| 2601 |
|
|
| 2602 |
|
} else { |
| 2603 |
|
$this->DebugMessage('AlphaChannelFlatten() failed imagecreate('.imagesx($this->gdimg_output).', '.imagesy($this->gdimg_output).')', __FILE__, __LINE__); |
| 2604 |
|
return false; |
| 2605 |
|
} |
| 2606 |
|
|
| 2607 |
|
} else { |
| 2608 |
|
// a single transparent color already defined, leave as-is |
|
@@ 2883-2885 (lines=3) @@
|
| 2880 |
|
$this->DebugMessage('phpthumb_functions::ImageCreateFunction('.$resized_x.', '.$resized_y.')', __FILE__, __LINE__); |
| 2881 |
|
} |
| 2882 |
|
imagedestroy($img_watermark_resized); |
| 2883 |
|
} else { |
| 2884 |
|
$this->DebugMessage('phpthumb_functions::ImageCreateFunction('.imagesx($this->gdimg_output).', '.imagesy($this->gdimg_output).')', __FILE__, __LINE__); |
| 2885 |
|
} |
| 2886 |
|
|
| 2887 |
|
} else { // overlay |
| 2888 |
|
|
|
@@ 3062-3064 (lines=3) @@
|
| 3059 |
|
$this->DebugMessage('ImageCreateFunction('.($scale_x * imagesx($img_temp)).', '.($scale_y * imagesy($img_temp)).') failed', __FILE__, __LINE__); |
| 3060 |
|
} |
| 3061 |
|
imagedestroy($img_temp); |
| 3062 |
|
} else { |
| 3063 |
|
$this->DebugMessage('ImageCreateFunction('.imagesx($this->gdimg_output).', '.imagesy($this->gdimg_output).') failed', __FILE__, __LINE__); |
| 3064 |
|
} |
| 3065 |
|
} |
| 3066 |
|
break; |
| 3067 |
|
|