Export to C image artifacts
GIMP version: 2.10.8
Operating System: Windows 10 Pro
Package: Installer from gimp.org
Description of the bug
Export to C is really great for microcontrollers with a small LCD attached. Many small LCD's use the RGB 565 format directly supported by Export to C. However, when the image is exported the first line of the image is replaced with some kind of white-ish dotted line. The rest of the image is fine.
Reproduction
Always reproducible for the images it does do it on. Pure black or pure white images don't seem to be affected by the bug.
Reproduction steps:
- Create new 100x100 image
- Fill with a solid green shade color
- Export to C with ONLY the option: 'Save as RGB565 (16-bit color)' selected.
- Open the file in a text editor and note that the first 200 image bytes (1 line) significantly differ from the remainder of the image bytes that follow an obvious two byte pattern.
Expected result:
The entire run of image bytes should follow a simple two byte pattern representing the RGB565 representation of green.
Actual result:
The first line of image bytes is replaced by a white-ish dashed line before settling down into the correct pattern.