2
votes

I'm actually building my first blog in Gatsby with data from WordPress.

I stuck on a question : how to display correctly the image from WYSIWYG to Gatsby ?

For example, on this page, one of two image correctly appear but not the second. Someone can explain me if this is possible to download allWpMedia in /static/ folder (like the default images) and replace all <img /> to <Img /> from gatsby-image ?

Thanks

Version of my packaging

[email protected]
[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

1

1 Answers

0
votes

Wordsby actually does this by default right now. https://github.com/TylerBarnes/wordsby

He also created a plugin called gatsby-wordpress-inline-images specifically for this issue.

https://github.com/TylerBarnes/gatsby-wordpress-inline-images