This commit is contained in:
seb
2026-08-01 03:37:45 +02:00
parent 69a24192d3
commit 1756dc7ef0
10 changed files with 179 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
import { createHash } from 'node:crypto';
import sharp from 'sharp';
import { rgbaToThumbHash } from 'thumbhash';
@@ -59,7 +58,6 @@ export default async function processAvifImage(inputBuffer) {
h: full.info.height,
size: full.data.length,
buffer: full.data,
hash: createHash('sha256').update(full.data).digest('hex'),
},
thumb: {
w: thumb.info.width,