@@ 602-613 (lines=12) @@ | ||
599 | $this->outputImageData = ob_get_contents(); |
|
600 | break; |
|
601 | ||
602 | case 'bmp': |
|
603 | $ImageOutFunction = '"builtin BMP output"'; |
|
604 | if (!@require_once __DIR__ . '/phpthumb.bmp.php') { |
|
605 | $this->DebugMessage('Error including "' . __DIR__ . '/phpthumb.bmp.php" which is required for BMP format output', __FILE__, __LINE__); |
|
606 | ob_end_clean(); |
|
607 | ||
608 | return false; |
|
609 | } |
|
610 | $phpthumb_bmp = new phpthumb_bmp(); |
|
611 | $this->outputImageData = $phpthumb_bmp->GD2BMPstring($this->gdimg_output); |
|
612 | unset($phpthumb_bmp); |
|
613 | break; |
|
614 | ||
615 | case 'ico': |
|
616 | $ImageOutFunction = '"builtin ICO output"'; |
|
@@ 615-627 (lines=13) @@ | ||
612 | unset($phpthumb_bmp); |
|
613 | break; |
|
614 | ||
615 | case 'ico': |
|
616 | $ImageOutFunction = '"builtin ICO output"'; |
|
617 | if (!@require_once __DIR__ . '/phpthumb.ico.php') { |
|
618 | $this->DebugMessage('Error including "' . __DIR__ . '/phpthumb.ico.php" which is required for ICO format output', __FILE__, __LINE__); |
|
619 | ob_end_clean(); |
|
620 | ||
621 | return false; |
|
622 | } |
|
623 | $phpthumb_ico = new phpthumb_ico(); |
|
624 | $arrayOfOutputImages = array($this->gdimg_output); |
|
625 | $this->outputImageData = $phpthumb_ico->GD2ICOstring($arrayOfOutputImages); |
|
626 | unset($phpthumb_ico); |
|
627 | break; |
|
628 | ||
629 | default: |
|
630 | $this->DebugMessage('RenderOutput failed because $this->thumbnailFormat "' . $this->thumbnailFormat . '" is not valid', __FILE__, __LINE__); |