mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00: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,
|
|
};
|
|
};
|