| @@ 473-479 (lines=7) @@ | ||
| 470 | ||
| 471 | return imagejpeg($this->bg, $file, $compress); |
|
| 472 | break; |
|
| 473 | case 'png': |
|
| 474 | if (!$file) { |
|
| 475 | header("Content-type: image/png"); |
|
| 476 | } |
|
| 477 | if ($compress != -1) { |
|
| 478 | @imagetruecolortopalette($this->bg, true, $compress); |
|
| 479 | } |
|
| 480 | ||
| 481 | return imagepng($this->bg, $file, $compress); |
|
| 482 | break; |
|
| @@ 483-489 (lines=7) @@ | ||
| 480 | ||
| 481 | return imagepng($this->bg, $file, $compress); |
|
| 482 | break; |
|
| 483 | case 'gif': |
|
| 484 | if (!$file) { |
|
| 485 | header("Content-type: image/gif"); |
|
| 486 | } |
|
| 487 | if ($compress != -1) { |
|
| 488 | @imagetruecolortopalette($this->bg, true, $compress); |
|
| 489 | } |
|
| 490 | ||
| 491 | return imagegif($this->bg, $file, $compress); |
|
| 492 | break; |
|