Gatsby-source-wordpress-experimental: Some inline images aren't processed to gatsby-image

Created on 24 Jul 2020  路  6Comments  路  Source: gatsbyjs/gatsby-source-wordpress-experimental

Heya!

Some inline images are no longer being processed to gatsby-images, I rolled back to 1.0.7 and all images work as expected there. I can't spot a pattern here, all are bog standard jpegs hosted on WordPress without anything custom, some of the same images on a single page become gatsby-images and others don't.

Relevant gatsby-config:

...
        develop: {
          nodeUpdateInterval: 10000,
          hardCacheMediaFiles: true,
        },
        html: {
          useGatsbyImage: true,
          imageQuality: 80,
          imageMaxWidth: 1400,
        },
...

Running gatsby start, the logs show less MediaItems are fetched in 1.0.14 than in 1.0.7

  • 1.0.7:
success  gatsby-source-wordpress  MediaItem - 117.249s - fetched 129
  • 1.0.14:
success  gatsby-source-wordpress  MediaItem - 88.116s - fetched 98
bug close candidate

Most helpful comment

Thank _you_ for the work on the plugin! 馃槃 Even in these early days it's already proving to make WordPress life way easier. Cheers!

All 6 comments

馃 oo, thanks for reporting this. And thanks for continuing to point out these issues. I have it on my todo list to write some exhaustive integration tests for images in html, I think I'll need to bump that up my list and do that as I fix this issue. Thanks again for your patience @woodwoerk !!

Thank _you_ for the work on the plugin! 馃槃 Even in these early days it's already proving to make WordPress life way easier. Cheers!

That's awesome to hear 馃槃 glad it's useful!!

I think this might be fixed, I'll double check and follow up, thanks for your patience here!

I also haven't noticed this recently, cheers for following up

Sweet :) I think it's fixed! I've also added static asset processing tests to ensure it doesn't regress. It's checking for the content of transforms as well as the total count of MediaItem nodes on a cold build and a delta update. So I think we're good!

Was this page helpful?
0 / 5 - 0 ratings