question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using gatsby-remark-images & gatsby-remark-images-contentful together makes images fade out (opacity 0)

See original GitHub issue

Description

When both remark transforms are used together inside of gatsby-transformer-remark the contentful markdown images fade out to opacity 0.

Steps to reproduce

If I don’t include the gatsby-remark-images plugin the contentful blog images work as expected, it only happens if I have both plugins defined.

gatsby-config.js

{
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: [
          {
            resolve: 'gatsby-remark-images',
            options: {
              maxWidth: 800,
              backgroundColor: 'var(--color-background)',
            },
          },
          {
            resolve: 'gatsby-remark-images-contentful',
            options: {
              maxWidth: 800,
              backgroundColor: 'var(--color-background)',
            },
          },
        ],
      },
}
Screenshot 2020-06-06 at 7 33 43 am

Expected result

Images from contentful markdown should not fade out.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LekoArtscommented, Feb 1, 2022

Hi!

I’m closing this as a stale issue as in the meantime Gatsby 4 and related packages were released. You can check our Framework Version Support Page to see which versions currently receive active support. If this is a feature request, please create a discussion as we moved feature requests from issues to GitHub Discussions.

Please try the mentioned issue on the latest version (using the next tag) and if you still see this problem, open a new bug report. It must include a minimal reproduction.

Thanks!

1reaction
d1checommented, Jun 14, 2021

I would love to help with this issue but there’s something I don’t understand yet. Why would one want to use both gatsby-remark-images and gatsby-remark-images-contentful in conjunction? I’m asking this because I encountered issue #16516 also when using gatsby-remark-images-contentful. PR #17154 fixed this but only for gatsty-remark-images. Could fixing this issue for gatsby-remark-images-contentful prevent one from having to use both plugins in conjunction? Or are there other reasons one might do that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS transition fade out using opacity is not working
I am trying to have a div where on hover the image fades out (so you can only see the gray background behind)...
Read more >
Quickly Change Transparency and Fade In or Fade Out Layer ...
This tutorial is on how to quickly change the transparency (or opacity ) and do a fade in or fade out of a...
Read more >
Fade an Image to Transparent in Photoshop - YouTube
Learn how to fade an image to transparent in Photoshop with a gradient applied to a mask. 0 :00 - Introduction0:49 - Drawing...
Read more >
How to Add a CSS Fade-in Transition Animation to Text ...
example of fade in image transition using css opacity. Here's how to make this effect happen: 1. In your HTML, create a div...
Read more >
How to Change a CSS Background Image's Opacity
Explore two approaches to change the opacity of an image in the ... By changing this value closer to 0 , the element...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found