FCL-image, FPreadTIFF cant read RGB32 and FPwriteTIFF can't write Gray8 or Gray16
Original Reporter info from Mantis: HK59 @han.k
-
Reporter name: han
Original Reporter info from Mantis: HK59 @han.k
- Reporter name: han
Description:
-
The reader FPreadTIFF reads correctly RGB24, RGB48, RGB64 formats but fails to read correctly RGB32. See attached files.
-
For FPwriteTIFF, I can force monchrome images as follows:
Image.Extra['TiffGrayBits']:='16';
Image.Extra['TiffPhotoMetric']:='0';
or
Image.Extra['TiffGrayBits']:='8';
Image.Extra['TiffPhotoMetric']:='0';
Looking into the code this looks like a bug.
See also my posting:
http://forum.lazarus.freepascal.org/index.php/topic,44257.0.html
Steps to reproduce:
For 1) try attached files.
Mantis conversion info:
- Mantis ID: 35081
- OS Build: 10
- Platform: Windows/Linux
- Version: 2.0
- Fixed in revision: 41802 (#ee177eab)