Skip to content

Is it possible to specify image size and screen width separately? #129

Open
@kingcw

Description

@kingcw

so basically if i do test.jpg?resize&sizes[]=300

it will generate a 300px image with screen width 300 in srcSet

<img srcset="test--300.png 300w" src="test--300.png">

This only shows this 300px image if screen width is less than 300, but usually images will only take part of a screen, like 20% of screen width, something like

<img srcset="test--300.png 1024w" src="test--300.png">

Is it possible to define image resize and screen width for srcset separately?

Thank you

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