Skip to content

[css-images] Specific algorithms for image-rendering #6252

Open
@progers

Description

@progers

The image-rendering property supports values such as smooth and high-quality but these are not specific enough. Bilinear is preferable in some cases (example), but not others, and we get bugs about this in chrome (crbug.com/562162). To change our defaults to be cubic in more cases, we need a way for users to request other algorithms.

Could we support the following new values for image-rendering?

  • nearest-neighbor
  • bilinear
  • trilinear (using mipmaps)
  • cubic-catmull-rom

The first three of these are ubiquitous and are typically available in hardware. An alternative to cubic-catmull-rom is to just specify cubic and leave the details up to implementations (see this page).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions