You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request removed the default image width for image transforms to enable you to only set a height and have the image infer the correct width automatically, just like it does with the height when setting a width.
This default still exists and can be removed in gatsby-source-contentful because this pull request for gatsby-plugin-sharp infers the defaults automatically if neither width nor height are given.
Steps to reproduce
Source an image from contentful and only set the height for the image transform with a query like:
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
Description
This pull request removed the default image width for image transforms to enable you to only set a
height
and have the image infer the correct width automatically, just like it does with the height when setting awidth
.This default still exists and can be removed in gatsby-source-contentful because this pull request for gatsby-plugin-sharp infers the defaults automatically if neither width nor height are given.
Steps to reproduce
Source an image from contentful and only set the height for the image transform with a query like:
Expected result
height
should be 160 andwidth
should be scaled according to the aspect ratio of the image.Actual result
width
is always 400.Environment
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
Binaries:
Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 2.7.15 - /c/Python27/python
Browsers:
Edge: 42.17134.1.0
npmPackages:
gatsby: ^2.4.3 => 2.4.3
gatsby-cli: ^2.5.8 => 2.5.13
gatsby-image: ^2.0.41 => 2.0.41
gatsby-plugin-material-ui: ^2.0.0-alpha.4 => 2.0.0-beta.0
gatsby-plugin-react-helmet: ^3.0.12 => 3.0.12
gatsby-plugin-sharp: ^2.0.37 => 2.0.37
gatsby-plugin-styled-components: ^3.0.7 => 3.0.7
gatsby-source-contentful: ^2.0.40 => 2.0.56
gatsby-transformer-sharp: ^2.1.19 => 2.1.19
The text was updated successfully, but these errors were encountered: