question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Height doesn't change with width

See original GitHub issue

I import image like this:

import image from "./images/main.jpg?width=200;400&meta";

I get an array like this: image

As you can see the height property doesn’t change with width.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yamiterucommented, Mar 13, 2021

Wtf now it works, but I haven’t changed anything… 🤔 Never mind.

1reaction
JonasKruckenbergcommented, Mar 12, 2021

The function call is an internal thing, it should just work. This is a bit weird but I’ll investigate it tomorrow👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found