Open Bug 953299 Opened 11 years ago Updated 2 years ago

Poor image quality on background-image

Categories

(Core :: Graphics: ImageLib, defect)

26 Branch
x86_64
Linux
defect

Tracking

()

People

(Reporter: u456582, Unassigned)

References

Details

Attachments

(5 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20131205075310

Steps to reproduce:

I try to display an image in CSS :
 background:black url('./my-image.jpg') no-repeat center;
 background-size:contain;

See the result here : http://www.luigifab.info/public/bad-image/test.html


Actual results:

The image is displayed with a bad quality.

The image size is 4000x3000 or 907x786, yes it's big for this example, but, for my application (slideshow in "full-screen"), the screen size can be 1024x768 or 1920×1080 or 2560×1440, so I think I need use an image with a bigger resolution, i.e.: image resolution > screen resolution.


Expected results:

Better quality, like in Chrome/Chromium.
Attached image screenshot-FF26-win7.png (deleted) —
Could you attach a screenshot (as PNG) of the rendering on your screen?
Flags: needinfo?(luigifab)
Attached image 1-resized-cubic-with-gimp.png (deleted) —
Image resized with cubic method with Gimp 2.8.
Flags: needinfo?(luigifab)
Attached image 2-resized-syncLanczos3-with-gimp.png (deleted) —
Image resized with sync lanczos 3 method with Gimp 2.8.
Attached image 3-screenshot-GC31-debian.png (deleted) —
Image resized with Chromium 31 on Debian (installed with Debian packages).
Version 31.0.1650.63 Debian jessie/sid (238485)
Attached image 4-screenshot-FF26-debian.png (deleted) —
Image resized with Firefox 26 on Debian (installed with the tar.bz2 file).
http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/26.0/linux-x86_64/fr/
Component: Untriaged → ImageLib
Product: Firefox → Core
image.high_quality_downscaling.enabled = false helps
Blocks: 486918
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: