Gatsby Image & Sharp background
blur-up
#25640
Labels
topic: media
Related to gatsby-plugin-image, or general image/media processing topics
type: bug
An issue or pull request relating to a bug in Gatsby
Description
When using
fit: CONTAIN background: "#ffffff"
on achildImageSharp
with the...GatsbyImageSharpFluid_withWebp
fragment the initial blurred base64 image has a black background which changes to the white background with the image loaded.Steps to reproduce
Using a GraphQL static query, add
query to your image,
see image blur up from black image to white.
CodeSandbox Example
https://codesandbox.io/s/brave-chaplygin-p7tnw?file=/src/components/image.js
Expected result
Blurred up image should have a white background
Actual result
Blurred up image has a black background in Base64 image
Environment
System:
OS: macOS 10.15.5
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.5.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 83.0.4103.116
Safari: 13.1.1
npmPackages:
gatsby: ^2.23.12 => 2.23.12
gatsby-image: ^2.4.9 => 2.4.9
gatsby-plugin-manifest: ^2.4.14 => 2.4.14
gatsby-plugin-postcss: ^2.3.9 => 2.3.9
gatsby-plugin-react-helmet: ^3.3.6 => 3.3.6
gatsby-plugin-sharp: ^2.6.14 => 2.6.14
gatsby-remark-images: ^3.3.17 => 3.3.17
gatsby-remark-normalize-paths: ^1.0.0 => 1.0.0
gatsby-remark-relative-images: ^0.3.0 => 0.3.0
gatsby-source-filesystem: ^2.3.14 => 2.3.14
gatsby-transformer-remark: ^2.8.23 => 2.8.23
gatsby-transformer-sharp: ^2.5.7 => 2.5.7
The text was updated successfully, but these errors were encountered: