| @@ 3506-3509 (lines=4) @@ | ||
| 3503 | $imgdata = ob_get_contents(); |
|
| 3504 | ob_end_clean(); |
|
| 3505 | ||
| 3506 | if (strlen($imgdata) <= $this->maxb) { |
|
| 3507 | imagetruecolortopalette($this->gdimg_output, true, pow(2, $i)); |
|
| 3508 | break; |
|
| 3509 | } |
|
| 3510 | } |
|
| 3511 | } |
|
| 3512 | if (strlen($imgdata) > $this->maxb) { |
|
| @@ 3512-3516 (lines=5) @@ | ||
| 3509 | } |
|
| 3510 | } |
|
| 3511 | } |
|
| 3512 | if (strlen($imgdata) > $this->maxb) { |
|
| 3513 | imagetruecolortopalette($this->gdimg_output, true, pow(2, $i)); |
|
| 3514 | ||
| 3515 | return false; |
|
| 3516 | } |
|
| 3517 | break; |
|
| 3518 | ||
| 3519 | case 'jpeg': |
|