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

transparent png background #18

Closed
repriest opened this issue Oct 16, 2020 · 1 comment
Closed

transparent png background #18

repriest opened this issue Oct 16, 2020 · 1 comment

Comments

@repriest
Copy link

2 questions:

  1. Is it supposed to work with transparent PNG background? In my case it just substitutes transparent background with default white

  2. background option does not seem to be working for me

png_transparent

Image itself
4lvl-page-tables

Gatsby image config:

{
  resolve: `gatsby-plugin-mdx`,
  options: {
    plugins: [
      `gatsby-remark-images`,
      `gatsby-remark-images-medium-zoom` // Important!
    ],
    gatsbyRemarkPlugins: [
      {
        resolve: `gatsby-remark-images`,
        options: {
          maxWidth: 590,
          linkImagesToOriginal: false, // Important!              
        }
      },
      {
        resolve: `gatsby-remark-images-medium-zoom`, // Important!
        options: {
          margin: 36,
          scrollOffset: 0,
          background: "#777"
        },
      }
    ],
  }
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`

@repriest
Copy link
Author

This is a bug in gatsby-plugin-mdx
Fix: Duplicate options under plugins

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

No branches or pull requests

1 participant