mirror of
https://github.com/documenso/documenso.git
synced 2026-07-10 04:55:02 +10:00
11 lines
226 B
TypeScript
11 lines
226 B
TypeScript
import sharp from 'sharp';
|
|
|
|
export const loadLogo = async (file: Uint8Array) => {
|
|
const content = await sharp(file).toFormat('png', { quality: 80 }).toBuffer();
|
|
|
|
return {
|
|
contentType: 'image/png',
|
|
content,
|
|
};
|
|
};
|