Closed Bug 1645886 Opened 4 years ago Closed 4 years ago

SVG-as-an-image with PNG content has poor scaling behavior (not as crisp as just-the-PNG, or as SVG in 'embed')

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1550710

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(3 files)

(Spinning this off from https://github.com/webcompat/web-bugs/issues/53671 )

If you nest a large PNG image in a SVG, and view the resulting SVG file as a small <img> element, then the resulting downscaled rendering is pixelated / less-smoothly-antialiased, as compared to the same setup with an <embed> and the same setup with a direct usage of the PNG.

This seems like a bug in our SVG-as-an-image rendering behavior.

Formal STR:

  1. View the attached testcase (ideally with a zoom tool like kmag on Linux).
  2. Compare the images' crispness.

ACTUAL RESULTS:
The first image and fourth image (the first in each set of three) look less crisp in Firefox. If you use kmag or another similar zooming tool, you can see that the curved edges are barely antialiased at all, whereas the other images have smoother/more-gradual antialiasing on their curved edges.

EXPECTED RESULTS:
Consistent crispness (consistent antialiasing behavior) between these cases.

Attachment #9156810 - Attachment description: (PNG image for testcase) → (PNG image for use in testcase)
Attached file testcase 1

dupe of bug 1550710 perhaps?

Looks likely. Thanks!

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: