Skip to content

Aspect ratios are not rounded in the NgOptimizedImage warnings #50273

@yharaskrik

Description

@yharaskrik

Which @angular/* package(s) are the source of the bug?

common

Is this a regression?

No

Description

When the warning is displayed because the aspect ratios are not matching correctly the numbers are not rounded and thus show quite a few decimal places

image

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI 16.0.01

Anything else?

Created at the behest of @andre

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: commonIssues related to APIs in the @angular/common packagecommon: image directivehelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).state: has PR

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions