From 6525a7e68e45c8019575cb190bc255fb449a4afa Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 1 Feb 2026 07:15:25 -0800 Subject: [PATCH] Fix copying array data in IIPHandler Fixes #5660 --- addons/addon-image/src/IIPHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/addon-image/src/IIPHandler.ts b/addons/addon-image/src/IIPHandler.ts index bebfee11..4922857a 100644 --- a/addons/addon-image/src/IIPHandler.ts +++ b/addons/addon-image/src/IIPHandler.ts @@ -105,7 +105,8 @@ export class IIPHandler implements IOscHandler, IResetHandler { return true; } - const blob = new Blob([new Uint8Array(this._dec.data8)], { type: this._metrics.mime }); + // HACK: The types on Blob are too restrictive, this is a Uint8Array so the browser accepts it + const blob = new Blob([this._dec.data8 as Uint8Array], { type: this._metrics.mime }); this._dec.release(); if (!window.createImageBitmap) {