This combines dom-to-image-chrome-fix-retina and changedpi.
import { toPng, toJpeg, toBlob } from "dom-to-image-retina"
const dataUrl = await toPng(el, options)
const dataUrl = await toJpeg(el, options)
const blob = await toBlob(el, options)
MIT.
$ claude mcp add dom-to-image-retina \
-- python -m otcore.mcp_server <graph>