enhance-dev / enhance-dev/enhance-image

Feature request: Auto add height/width attributes

Open
#9 1 comment 0 reactions 1 assignee Claimed by @colepeters View on GitHub
enhancement
Dominant language
JavaScript
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

So right now, I see we have the option to add the height/width attributes ourselves. I would _love_ it if the component determined the height/width of the source image automatically and used that for those attributes (could still be an optional flag to include them).

The exact situation I'd love to use this is on a marketing page where product images change fairly frequently, as do the actual dimensions. Having height/width auto generated would be amazing as I could just update the image and enhance-image would do everything else for me.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.