Closed Bug 320510 Opened 19 years ago Closed 17 years ago

Canvas renders gif image with mask incorrectly

Categories

(Core :: Graphics: Canvas2D, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ehammerv, Unassigned)

References

()

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051215 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051215 Firefox/1.6a1

When inserting an gif image with a transparency mask canvas renders the mask incorrectly, it looks as though it is inverting the x-axis starting point of the mask and the edges of the image are displayed in a jagged sissor pattern.

Reproducible: Always

Steps to Reproduce:
1. var testimg = new Image();
2. testimg.src = "images/test.gif";
3. ctx.drawImage(testimg,50,50,214,214);
attach testcase please
Attached image image for testcase
testcase next
Attached file testcase
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20051220 Firefox/1.6a1 ID:2005122023

Confirmed
->New
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 330478 has been marked as a duplicate of this bug. ***
Note also bug 332454.
This seems fixed for me in 1.8.1 (Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.1b1) Gecko/20060710 Firefox/2.0b1). The test cases in bug 330478 and bug 332454 also work.

Probably related to "the handling of 1-bit images is horked (bits are packed backwards).  I'll fix." comment in bug 329598.
*** Bug 332454 has been marked as a duplicate of this bug. ***
Fixed in trunk
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: