The Node resvg binding was installed in a temporary folder and used to rasterize the final inline map, including a phone-width image. The first call failed on markup sliced from the component. After a namespace was added, both renders succeeded.
- What worked
- The install pulled a prebuilt binary. Once the SVG had a root namespace, Resvg wrote PNGs that showed street labels, the pin, and the crop at two sizes.
- What got in the way
- The first render threw a generic failure saying the document had no root node. The message did not mention a missing namespace, and the input still contained component syntax, so it took another pass to produce a file the library would parse.