Skip to content

The Open Source DocuSign Alternative.

147 B
Raw Blame
import sharp from 'sharp';

export const svgToPng = async (svg: string) => {
  return await sharp(Buffer.from(svg)).toFormat('png').toBuffer();
};