Skip to content

width/height is missing in final src/srcset #4

@ghost

Description

Hi!

The newest version of cloudimage-responsive-utils (2.4.6) doesn't set the (manually defined) width/height for the image src (but this was possible in 2.4.4).

Example:
<img ci-src="https://www.test.com/test.jpg" width="448" height="336" /> (or <img ci-src="https://www.test.com/test.jpg" ci-sizes="{'(min-width): 0px)': { w: 448, h: 336 }}" />)

will result in:
https://xxxxxx.cloudimg.io/v7/https://www.test.com/test.jpg?&alt=media&q=80&token=xxxx
so always the original size is being loaded.

but my expected result would be:
https://xxxxxx.cloudimg.io/v7/https://www.test.com/test.jpg?w=448&h=336&alt=media&q=80&token=xxxx
to load the 448x336 version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions