Closed
Bug 330478
Opened 20 years ago
Closed 20 years ago
Canvas drawImage corrupts PNGs with indexed transparency
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 320510
People
(Reporter: brothererryn, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Attempting to draw any indexed transparent PNG onto a canvas results in the image being horribly corrupted. Any method of "grabbing" the source image or drawing it on the canvas has the same effect. Non-transparent indexed PNGs draw correctly.
Reproducible: Always
Steps to Reproduce:
1. Draw a transparent indexed PNG onto a canvas by any method.
2. Observe the corrupted image.
Actual Results:
Image is corrupted.
Expected Results:
The image should have been drawn correctly.
I'll attach a test case.
| Reporter | ||
Comment 1•20 years ago
|
||
| Reporter | ||
Comment 2•20 years ago
|
||
| Reporter | ||
Comment 3•20 years ago
|
||
Also seems to be an issue with transparent GIFs, but I haven't tested this as thoroughly.
| Reporter | ||
Comment 4•20 years ago
|
||
For some reason I didn't see the dupe when I searched originally. I'll clean up my own mess, but the test case might still be useful.
*** This bug has been marked as a duplicate of 320510 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•