Skip to content

Error with certain width/height and pixel ratio for svg images #2

@pathmapper

Description

@pathmapper

Steps to reproduce:

Use the CLI with:

{"id": "green", "url": "{base_url}/images/green.svg", "width": 200, "height": 200},

http://localhost:8080/acme/[email protected]

Error: Expected number between 1 and 2400 for density but received 2880 of type number

With
https://cdn.jsdelivr.net/gh/maputnik/osm-liberty@gh-pages/svgs/svgs_iconset/airport_11.svg
this happens with "width": 200, "height": 200 and @3x.

So for more complex SVGs this seems to happen at a lower width/height and pixel ratio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions