gatsby-source-wordpress using featuredImage gatsbyImage with tracedSVGOptions (and migrate to Gatsby Image CDN…) #37013
-
I'm try to use According to my GraphQL exemple query below, the But I'm trying to migrate to Gatsby Image CDN … and Why
Sample GraphQL query : {
wpPage(slug: {eq: "sample-page"}) {
slug
title
featuredImage {
node {
gatsbyImage(
width: 1920
height: 1920
placeholder: TRACED_SVG
layout: FULL_WIDTH
# with tracedSVGOptions query fails
tracedSVGOptions: {background: "#666666", color: "#F0F0F0", turdSize: 4, optTolerance: 0.5, turnPolicy: TURNPOLICY_WHITE, blackOnWhite: false}
)
localFile {
childImageSharp {
gatsbyImageData(
width: 1920
height: 1920
placeholder: TRACED_SVG
layout: FULL_WIDTH
# tracedSVGOptions works … only if MediaItem createFileNodes
tracedSVGOptions: {background: "#666666", color: "#F0F0F0", turdSize: 4, optTolerance: 0.5, turnPolicy: TURNPOLICY_WHITE, blackOnWhite: false}
)
}
}
}
}
}
} Is there a workaround ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Isn't SVG just not supported in ImageCDN? https://support.gatsbyjs.com/hc/en-us/articles/4426393233171-How-to-Enable-Image-CDN |
Beta Was this translation helpful? Give feedback.
Isn't SVG just not supported in ImageCDN? https://support.gatsbyjs.com/hc/en-us/articles/4426393233171-How-to-Enable-Image-CDN