Scaling an image in a canvas using drawImage produces nonuniform color fields

NEW
Unassigned

Status

()

Core
Canvas: 2D
P2
normal
13 years ago
10 years ago

People

(Reporter: roc, Unassigned)

Tracking

({testcase})

Trunk
x86
Linux
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

I will attach a fairly self-explanatory testcase. Basically, given a two-color image input being scaled up by a factor of 10, we get output where the color varies continuously across the image, not just at the boundaries of the original color blocks.
Created attachment 205778 [details]
screenshot of testcase

screenshot
If you look closely at the screenshot with GIMP or something, it appears that the the original image was dithered and we've scaled up the dithering, which is where the artifacts come from. One could argue that this is "by design" but it doesn't seem like a great result. Anyway it's no doubt a Mozilla issue so I'll stop spamming Carl.

Updated

13 years ago
Keywords: testcase
Given bug 324698, maybe we should have kept spamming Carl?  ;)
Depends on: 324698
Priority: -- → P2
I can see it in FF 1.5 and FF 2. But I can't reproduce it with trunk. Can somebody else confirm too that this bug isn't valid anymore?
You need to log in before you can comment on or make changes to this bug.