Removal of tracedSvg and TRACED_SVG #37104
Unanswered
Khaledgarbaya
asked this question in
Umbrella Discussions
Replies: 1 comment 2 replies
-
Are there any plans to try and get this functionality back through a different method/library? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to licensing requirements, we are removing the Potrace library usage from Gatsby 5, specifically starting with v5.2.
Potrace is used in Gatsby's image transformations, specifically for creating an SVG placeholder. For example, in
gatsby-plugin-image
you were able to use it withtracedSvg
andTRACED_SVG
respectively.These are the affected libraries/plugins:
[email protected]
[email protected]
[email protected]
[email protected]
There will be no API-breaking changes, your builds will continue to work. However, whenever you use the
tracedSvg
feature Gatsby automatically falls back to the default placeholder style now. In most instances, this isDOMINANT_COLOR
. You'll see a detailed warning message in your CLI about this, too.The Potrace library has a GPL license which would require Gatsby to be also licensed as GPL. We don't have any plans to change our current MIT license to GPL therefore we are removing Potrace.
You can read more about MIT vs GPL license at choosealicense
Beta Was this translation helpful? Give feedback.
All reactions