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

feat: handle gifs correctly #7

Merged
merged 1 commit into from
Apr 4, 2022
Merged

feat: handle gifs correctly #7

merged 1 commit into from
Apr 4, 2022

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Apr 4, 2022

Gatsby does not optimize GIFs (and maybe some other image types), so image.childImageSharp will be undefined in these cases. However, it will still set a publicURL, which can be used to show an unoptimized image that is the same regardless of screen size.

@chadoh
Copy link
Contributor Author

chadoh commented Apr 4, 2022

@pulsarforge fyi, adding this to the template now

@chadoh chadoh merged commit a6104e1 into main Apr 4, 2022
@chadoh chadoh deleted the feat/gif branch April 4, 2022 15:17
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.

None yet

1 participant