Height doesn't change with width
See original GitHub issueI import image like this:
import image from "./images/main.jpg?width=200;400&meta";
I get an array like this:

As you can see the height property doesn’t change with width.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Image Height size doesn't change and only width that change
Have you tried to change the image size using inline css? For example <img src="url" width="specified with in px or %">.
Read more >Setting Height And Width On Images Is Important Again
To prevent layout shifts and improve performance scores, we need to always set width and height attributes on our images.
Read more >Height doesn't change in css - General Support - ProcessWire
Hi, I am trying to make a site for a studio, and I wanted to set a specific hover effect ... Height doesn't...
Read more >height - CSS: Cascading Style Sheets - MDN Web Docs
The height CSS property specifies the height of an element. By default, the property defines the height of the content area.
Read more >Can I change the size of an image? - Codecademy
There is no command for changing an image size. Image dimensions are 'properties' which can be expressed in either the HTML <img> element,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Wtf now it works, but I haven’t changed anything… 🤔 Never mind.
The function call is an internal thing, it should just work. This is a bit weird but I’ll investigate it tomorrow👍