[gatsby-plugin-manifest] Rectangular canvas svg generates incorrect favicons #12051
Labels
help wanted
Issue with a clear description that the community can help with.
stale?
Issue that may be closed soon due to the original author not responding any more.
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
type: bug
An issue or pull request relating to a bug in Gatsby
Description
When you provide an svg with rectangular canvas (not square), gatsby-plugin-manifest produces malformed favicons, e.g. 144x130, which then results in an error in the browser.
Steps to reproduce
Add rectangular svg (see below) to your project and modify gatsby-config.js to point to that svg
Set gatsby-config.js:
Save svg to src/images/mountains.svg:
Expected result
There are two options, either correctly sized favicons should be produced or the build should emit warning or error.
Actual result
Everything goes smoothly until you find an error in your console
Environment
Run
gatsby develop
and observe the error in Chrome.The text was updated successfully, but these errors were encountered: