Skip to content

Unexpected aspect ratio format #530

Open
@tremby

Description

@tremby

Currently, you have aspect ratio is set to the height as a percentage of the width.

https://github.com/oscarotero/Embed/blob/8ac21505d048e8796c6cb9172ec5e81e5d0e0408/src/EmbedCode.php#L23

This isn't what most people would call aspect ratio; it should be width divided by height. (And not as a percentage.)

In fact, in the docs you actually say it's width divided by height:

https://github.com/oscarotero/Embed/blob/8ac21505d048e8796c6cb9172ec5e81e5d0e0408/README.md?plain=1#L61

(I noticed the unexpected value downstream here spicywebau/craft-embedded-assets#247 where I point out it'd be a breaking change, but something to consider for a major release.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions