From 72c5be1bce29015b38274da974512eb4232c7f57 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 2 Aug 2025 18:19:15 +0200 Subject: [PATCH] Fix TypeScript complaint in Blurhash component --- packages/pl-fe/src/components/blurhash.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/components/blurhash.tsx b/packages/pl-fe/src/components/blurhash.tsx index fc03b3162..0f0c6782d 100644 --- a/packages/pl-fe/src/components/blurhash.tsx +++ b/packages/pl-fe/src/components/blurhash.tsx @@ -42,7 +42,7 @@ const Blurhash: React.FC = React.memo(({ try { const pixels = decode(hash, width, height); const ctx = canvas.getContext('2d'); - const imageData = new ImageData(pixels, width, height); + const imageData = new ImageData(new Uint8ClampedArray(pixels), width, height); if (!ctx) return; ctx.putImageData(imageData, 0, 0);