Closed Bug 861639 Opened 11 years ago Closed 8 years ago

BMP images with BITMAPSV5HEADER are not always parsed/rendered correctly

Categories

(Core :: Graphics: ImageLib, defect)

20 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1214072

People

(Reporter: smecta, Unassigned)

References

Details

Attachments

(2 files)

Attached image 32bpp_RGBA_bmpv5_bi_bitfield.bmp (deleted) —
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0
Build ID: 20130401133152

Steps to reproduce:

Open the image attached in this bug report with firefox.

Image description :

- Bitmap using BITMAPV5HEADER
- BI_BITFIELDS compression
- 32 bits per pixel storage
- bitmasks :

RedMask;      : 0xff000000
GreenMask;  : 0x00ff0000
BlueMask;     : 0x0000ff00
AlphaMask;   : 0x000000ff

Additional information :
- Tested with a 64 bit Linux distribution (Fedora 17) with firefox 20.0
- The image is correctly oppened with GIMP, gthumb, eog, ...
- A quick look at src/image/src/BMPFileHeaders.h show that there is no alpha in the bitFields struct.
- Also, in src/image/decoders/nsBMPDecoder.cpp doesn't parse alpha bitfields of bitmap v5.

If I interpret that correctly, it looks like that it's just not implemented.


Actual results:

The image appear blue with a black disc on the center.


Expected results:

The image is black with a transparent disc on the center.
Attached image resending the attachment (deleted) —
The previous attachement has been deleted. I am not sure why...
Well I don't know what I did wrong... The file can be found here : https://bug697431.bugzilla-attachments.gnome.org/attachment.cgi?id=240849
Component: Untriaged → ImageLib
Product: Firefox → Core
Confirmed in 32.0a1 (2014-05-26), Win 7 x64
Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1014810
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: