enhance-dev / enhance-image

5 stars 2 forks source link

Feature request: Auto add height/width attributes #9

Open tkadlec opened 5 months ago

tkadlec commented 5 months ago

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.

colepeters commented 5 months ago

This is definitely something we're interesting in implementing, thanks for bringing it up! Not exactly sure on the timeline but stay tuned ;)