Closed Bug 423798 Opened 18 years ago Closed 18 years ago

Transparency in 24bit and grayscale APNGs

Categories

(Core :: Graphics: ImageLib, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: asmith16, Assigned: glennrp+bmo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.
(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: nobody → glennrp
Status: NEW → ASSIGNED
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
Blocks: png3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: