| @@ 476-485 (lines=10) @@ | ||
| 473 | } |
|
| 474 | ||
| 475 | switch($this->file_format) { |
|
| 476 | case "png": |
|
| 477 | if ($this->is_inline == 0) { |
|
| 478 | Header('Content-type: image/png'); |
|
| 479 | } |
|
| 480 | if ($this->is_inline == 1 && $this->output_file != "") { |
|
| 481 | ImagePng($this->img,$this->output_file); |
|
| 482 | } else { |
|
| 483 | ImagePng($this->img); |
|
| 484 | } |
|
| 485 | break; |
|
| 486 | case "jpg": |
|
| 487 | if ($this->is_inline == 0) { |
|
| 488 | Header('Content-type: image/jpeg'); |
|
| @@ 486-495 (lines=10) @@ | ||
| 483 | ImagePng($this->img); |
|
| 484 | } |
|
| 485 | break; |
|
| 486 | case "jpg": |
|
| 487 | if ($this->is_inline == 0) { |
|
| 488 | Header('Content-type: image/jpeg'); |
|
| 489 | } |
|
| 490 | if ($this->is_inline == 1 && $this->output_file != "") { |
|
| 491 | ImageJPEG($this->img,$this->output_file); |
|
| 492 | } else { |
|
| 493 | ImageJPEG($this->img); |
|
| 494 | } |
|
| 495 | break; |
|
| 496 | case "gif": |
|
| 497 | if ($this->is_inline == 0) { |
|
| 498 | Header('Content-type: image/gif'); |
|
| @@ 496-506 (lines=11) @@ | ||
| 493 | ImageJPEG($this->img); |
|
| 494 | } |
|
| 495 | break; |
|
| 496 | case "gif": |
|
| 497 | if ($this->is_inline == 0) { |
|
| 498 | Header('Content-type: image/gif'); |
|
| 499 | } |
|
| 500 | if ($this->is_inline == 1 && $this->output_file != "") { |
|
| 501 | ImageGIF($this->img,$this->output_file); |
|
| 502 | } else { |
|
| 503 | ImageGIF($this->img); |
|
| 504 | } |
|
| 505 | ||
| 506 | break; |
|
| 507 | case "wbmp": |
|
| 508 | if ($this->is_inline == 0) { |
|
| 509 | Header('Content-type: image/wbmp'); |
|
| @@ 507-517 (lines=11) @@ | ||
| 504 | } |
|
| 505 | ||
| 506 | break; |
|
| 507 | case "wbmp": |
|
| 508 | if ($this->is_inline == 0) { |
|
| 509 | Header('Content-type: image/wbmp'); |
|
| 510 | } |
|
| 511 | if ($this->is_inline == 1 && $this->output_file != "") { |
|
| 512 | ImageWBMP($this->img,$this->output_file); |
|
| 513 | } else { |
|
| 514 | ImageWBMP($this->img); |
|
| 515 | } |
|
| 516 | ||
| 517 | break; |
|
| 518 | default: |
|
| 519 | $this->PrintError('Please select an image type!<br />'); |
|
| 520 | break; |
|