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

fix(gatsby-plugin-image): Correctly handle formats in StaticImage #28618

Merged
merged 9 commits into from
Dec 15, 2020

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Dec 15, 2020

The StaticImage component wasn't correctly extracting the formats prop

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 15, 2020
@ascorbic ascorbic removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 15, 2020
@ascorbic ascorbic changed the title WIP: static image formats prop fix(gatsby-plugin-image): Correctly handle formats in StaticImage Dec 15, 2020
@ascorbic ascorbic marked this pull request as ready for review December 15, 2020 11:06
Lazy-load tests currently fail if there's a webp image. This will need a proper fix later, but not in this PR.
This reverts commit 7f1cd2a.
@ascorbic ascorbic added the topic: media Related to gatsby-plugin-image, or general image/media processing topics label Dec 15, 2020
@ascorbic ascorbic merged commit 912f30c into master Dec 15, 2020
@ascorbic ascorbic deleted the fix/static-image-formats-2 branch December 15, 2020 12:57
LekoArts pushed a commit that referenced this pull request Dec 15, 2020
…8618)

* Include formats prop

* Default to auto, webp

* fix(gatsby-plugin-sharp): Include default transform options for webp

* Update snapshots

* Is this why it fails?

* Allow time for other image

* Use jpg-only for lazy-load tests.
Lazy-load tests currently fail if there's a webp image. This will need a proper fix later, but not in this PR.
This reverts commit 7f1cd2a.

(cherry picked from commit 912f30c)
LekoArts added a commit that referenced this pull request Dec 15, 2020
…8618) (#28630)

* Include formats prop

* Default to auto, webp

* fix(gatsby-plugin-sharp): Include default transform options for webp

* Update snapshots

* Is this why it fails?

* Allow time for other image

* Use jpg-only for lazy-load tests.
Lazy-load tests currently fail if there's a webp image. This will need a proper fix later, but not in this PR.
This reverts commit 7f1cd2a.

(cherry picked from commit 912f30c)

Co-authored-by: Matt Kane <matt@gatsbyjs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: media Related to gatsby-plugin-image, or general image/media processing topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants