Skip to content
Snippets Groups Projects
Unverified Commit 46525f86 authored by Morris Jobke's avatar Morris Jobke
Browse files

Change 0 to null to properly encode image to BMP if the first pixel is black


Ref #22288

Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent cd563023
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment