Prettier canvas image resampling/resizing when using drawImage

RESOLVED FIXED

Status

()

Core
Canvas: 2D
RESOLVED FIXED
12 years ago
6 years ago

People

(Reporter: Kamiel Martinet, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b5) Gecko/20051011 Firefox/1.4.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b5) Gecko/20051011 Firefox/1.4.1

This isn't really a bug but I find it extremely annoying. Currently when using
the drawWindow or drawImage methods to render scaled bitmaps a resampling method
is used that looks almost but not quite like nearest neighbor. (tested on
windows and linux)

This is very obvious when drawing thumbnails of windows using drawWindow. Text
becomes a complete mess and it's very hard to make out even large headers.

Reproducible: Always
(Reporter)

Updated

12 years ago
Version: Trunk → 1.8 Branch

Comment 1

12 years ago
confirming and tweaking summary to make it easier to find.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Prettier canvas image resampling → Prettier canvas image resampling/resizing when using drawImage

Comment 2

10 years ago
This bug seems a duplicate of 372462. Additionally, the original bug 98971 does not actually seem fixed, at least for downsized images in 2.0.0.4.
It's possible they could get fixed by the same thing but these are two quite different circumstances that certainly warrant individual attention.

I'm moving this to trunk since I don't believe any fix here would make the branch now.
Version: 1.8 Branch → Trunk

Comment 4

10 years ago
At least in my nightly (20070614), trunk has very pretty resampling - I'd call this fixed in trunk. Sounds like consensus is to punt on any attempt to fix this in 2.* and just focus on 3.0, which is fair.
We can probably just close this as fixed, then, correct?
An issue possibly left here is that linear interpolation downsampling like we're using on most platforms breaks down when you're downsizing by more than a factor of 2. This is a separate issue though and not specific to canvas, there's already bugs on this.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.