Canvas renders gif image with mask incorrectly

RESOLVED WORKSFORME

Status

()

Core
Canvas: 2D
RESOLVED WORKSFORME
12 years ago
10 years ago

People

(Reporter: Eric Hammervold, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

12 years ago
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
Created attachment 206634 [details]
image for testcase

testcase next
Created attachment 206635 [details]
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

Comment 5

11 years ago
*** Bug 330478 has been marked as a duplicate of this bug. ***

Comment 6

11 years ago
Note also bug 332454.

Comment 7

11 years ago
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
Last Resolved: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.