Member Junction
    Preparing search index...
    • Asynchronously rasterizes an SVG string to a JPEG base64 string (without the data:image/jpeg;base64, prefix) using an offscreen canvas. Returns null in non-DOM environments or when rendering fails.

      Parameters

      • svg: string
      • width: number = 1280
      • height: number = 720

      Returns Promise<string | null>