Closed
Bug 423798
Opened 18 years ago
Closed 18 years ago
Transparency in 24bit and grayscale APNGs
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: asmith16, Assigned: glennrp+bmo)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
19.15 KB,
text/html
|
Details |
Sorry I didn't have time to research this, it's a report I got:
"Here's two more APNGs that Firefox displays incorrectly.
Because of dispose_op=background they have transparent areas, but those areas should be just black. 24bit- and grayscale- images can't have any transparency."
I don't know if it's actually a bug or a bad interpretation of a spec by the reporter.
| Assignee | ||
Comment 1•18 years ago
|
||
(In reply to comment #0)
> 24bit- and grayscale- images can't have any
> transparency."
They can if they have a tRNS chunk. Unfortunately I've forgotten how to download an image that is in a "data:" URL, so I can't diagnose them properly.
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → glennrp
| Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•18 years ago
|
||
The APNG spec says
APNG_DISPOSE_OP_BACKGROUND: the frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame.
That's what FF is doing with these images, not only on Linux but on Windows. The page background shows through the transparent black holes left in the image.
Perhaps the author intended to get the behavior of APNG_DISPOSE_OP_PREVIOUS.
BTW, I was sent a copy of the two datastreams, and they don't have the tRNS chunk, so that's not an issue here.
I'm closing this bug as INVALID, because FF is following the APNG spec properly.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
OS: Linux → All
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•