TImage loads Grayscale JPEGs incorrectly
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
TImage does not display 8-bit grayscale JPEG images correctly. Regardless of whether you use the IDE to set the TImage.Picture property or you use TImage.Picture.LoadFromFile at runtime, the whites look gray. This effect is regardless of whether one uses MacOS (either Carbon or Cocoa) or Linux (default GTK2) widgetsets. I have not tested this on Windows - perhaps it works on Windows (different gamma?). Note that the same grayscale image saved as a 24-bit RGB color model looks correct with vibrant whites.
Steps to reproduce:
Create an application. Add a TImage. Go to the Picture property and load an 8-bit JPEG saved with a grayscale color model. Note that white parts are rendered as gray.
Mantis conversion info:
- Mantis ID: 32744
- OS: Darwin
- OS Build: 10.11.6
- Build: 56527
- Platform: MacBook Retina
- Version: 1.9 (SVN)