Browse Source
Change 0 to null to properly encode image to BMP if the first pixel is black
Ref #22288
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/22768/head
Morris Jobke
5 years ago
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with
1 additions and
1 deletions
-
lib/private/legacy/OC_Image.php
|
|
|
@ -1211,7 +1211,7 @@ if (!function_exists('imagebmp')) { |
|
|
|
} // RLE8
|
|
|
|
elseif ($compression == 1 && $bit == 8) { |
|
|
|
for ($j = $height - 1; $j >= 0; $j--) { |
|
|
|
$lastIndex = 0; |
|
|
|
$lastIndex = null; |
|
|
|
$sameNum = 0; |
|
|
|
for ($i = 0; $i <= $width; $i++) { |
|
|
|
$index = imagecolorat($im, $i, $j); |
|
|
|
|