MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / svgToBlobUrl

Function svgToBlobUrl

scripts/magnify_image.js:1460–1463  ·  view source on GitHub ↗
(svg)

Source from the content-addressed store, hash-verified

1458 }
1459}
1460function svgToBlobUrl(svg) {
1461 let url = URL.createObjectURL(new Blob([svg], { type: "image/svg+xml" }));
1462 return url;
1463}
1464function svgToBase64(svg) {
1465 try {
1466 return (

Callers 1

getImgSrcsFromElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected