We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3db77a5 commit 3be9541Copy full SHA for 3be9541
packages/gatsby-plugin-image/src/image-utils.ts
@@ -170,7 +170,7 @@ export function setDefaultDimensions(
170
layout = camelCase(layout) as Layout
171
172
if (width && height) {
173
- return args
+ return { ...args, formats, layout }
174
}
175
if (sourceMetadata.width && sourceMetadata.height && !aspectRatio) {
176
aspectRatio = sourceMetadata.width / sourceMetadata.height
0 commit comments