Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set dimensions to auto if missing on gatsbyImage resolver #1

Merged
merged 1 commit into from
Nov 30, 2021

Conversation

mnussbaumer
Copy link
Contributor

No description provided.

Comment on lines -220 to -223
placeholder: {
type: "GatsbyImagePlaceholder",
description: "Format of generated placeholder image, displayed while the main image loads. BLURRED: a blurred, low resolution image, encoded as a base64 data URI (default) DOMINANT_COLOR: a solid color, calculated from the dominant color of the image. TRACED_SVG: a low-resolution traced SVG of the image. NONE: no placeholder. Set the argument 'backgroundColor' to use a fixed background color.",
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here I'm removing the placeholder arg from the resolver since it doesn't make sense to have this property available. Perhaps what I should add is placeholderURL ?

@mnussbaumer mnussbaumer merged commit ff31ffc into main Nov 30, 2021
@mnussbaumer mnussbaumer deleted the auto_dimensions branch November 30, 2021 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant