Closed Bug 312309 Opened 19 years ago Closed 13 years ago

Prettier canvas image resampling/resizing when using drawImage

Categories

(Core :: Graphics: Canvas2D, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kamiel, Unassigned)

Details

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
Version: Trunk → 1.8 Branch
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
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
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
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.