gatsby-plugin-image: resize images taking aspect ratio into account #30572
Unanswered
smashercosmo
asked this question in
Ideas / Feature Requests
Replies: 4 comments 8 replies
-
@wardpeet wdyt? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@smashercosmo You probably want |
Beta Was this translation helpful? Give feedback.
3 replies
-
Still relevant for Gatsby 3.3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Still not possible to resize an image so that it's smaller than or equal to specified dimensions while maintaining aspect ratio :( |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, if you provide both width and height to
gatsbyImageData
function you get square image in response for both portrait and landscape oriented images:What I suggest is the ability to resize images according to this formula:
Using this formula resized images will keep their orientation and aspect ratio. WDYT?
Beta Was this translation helpful? Give feedback.
All reactions