Is there any CLI tool to convert externally linked SVG to PNG images? [closed]

I need to render an SVG file in my project to an image. It contains externally linked <image> tags like. These images can not be embedded in the SVG file

<image xlink:href="screenshot.png" .../>

Since I often work on Termux on my phone, I need a CLI tool to do this. Here are some options I have tried:

  • Inkscape: I can’t find any way to install Inkscape on Termux or Android
  • rsvg-convert: Works on Termux, but does not support external link
  • Online tools: Doesn’t support external links either