mirror of
https://github.com/documenso/documenso.git
synced 2026-07-22 16:03:39 +10:00
6 lines
147 B
TypeScript
6 lines
147 B
TypeScript
import sharp from 'sharp';
|
|
|
|
export const svgToPng = async (svg: string) => {
|
|
return await sharp(Buffer.from(svg)).toFormat('png').toBuffer();
|
|
};
|