Open Bug 1547612 Opened 7 years ago Updated 2 months ago

Use Lanczos for upscaling images

Categories

(Core :: Graphics: ImageLib, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: aros, Unassigned)

References

Details

(Keywords: feature)

Attachments

(1 file)

Attached image firefox_vs_lanczos.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

Currently Firefox uses bicubic (?) for image upscaling and this algo is not optimal specially for text.

Expected results:

See the attached screenshot:

Firefox 67 beta 14 vs. Lanczos.

Type: defect → enhancement
Severity: normal → major
Status: UNCONFIRMED → NEW
Component: Untriaged → ImageLib
Ever confirmed: true
Keywords: feature
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
See Also: → 486918
Summary: Use lanczos for upscaling images for different zoom levels → Use Lanczos method for upscaling images for different zoom levels
Version: 67 Branch → unspecified
Priority: -- → P3

This can be done at high performance using shaders. For example, madvr renderer can upscale hundreds of frames per second using lanczos on modern discrete video cards.

QA Whiteboard: qa-not-actionable

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --
Severity: -- → S3

This bug appears dormant, but the underlying assumptions may deserve re-evaluation. When it was filed, display scaling was less common. Today, HiDPI displays, fractional desktop scaling, browser zoom, screenshots, documentation, and web applications make image resampling quality far more user-visible.

The attached comparison demonstrates a substantial readability difference, particularly for screenshots and text-containing images. Given modern hardware and Firefox's GPU-based rendering architecture, it may be worth revisiting whether the current quality/performance tradeoff remains appropriate.

Flags: needinfo?(0460f4mta)
Summary: Use Lanczos method for upscaling images for different zoom levels → Feature request: Use Lanczos for upscaling images

When you say upscale, are you referring to the fact that on a "Retina" display Mac or Windows equivalent, all 1x images/assets get upscaled? There is a Firefox extension for this but the OS display scaling must be at 200% and the browser webpage zoom must be at default for the integer upscaling to work https://tanalin.com/en/projects/smart-upscale/

(In reply to Will from comment #4)

When you say upscale, are you referring to the fact that on a "Retina" display Mac or Windows equivalent, all 1x images/assets get upscaled? There is a Firefox extension for this but the OS display scaling must be at 200% and the browser webpage zoom must be at default for the integer upscaling to work https://tanalin.com/en/projects/smart-upscale/

I'm talking about zooming in/out when pressing Ctrl + + and Ctrl + - or using Default Zoom != 100% in Settings.

Flags: needinfo?(0460f4mta)

Please don't add "Feature request" to titles. This is already marked as an enhancement bug.

Summary: Feature request: Use Lanczos for upscaling images → Use Lanczos for upscaling images
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: