From 49e31ae52339661da8f6de67b730dc13bfe5d3f8 Mon Sep 17 00:00:00 2001 From: kolten Date: Tue, 4 Feb 2025 15:22:43 -0700 Subject: [PATCH] treating a 4 component colorspace as a uint8 array lets it work --- lib/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.js b/lib/api.js index 7027b17..6b1be96 100644 --- a/lib/api.js +++ b/lib/api.js @@ -178,7 +178,7 @@ function getArrayType(bytes, float) { if (bytes == 2) throw new Error("Float16Array not supported by LittleCMS"); return Float32Array; } - if (bytes === 4) throw new Error("Uint32Array not supported by LittleCMS"); + if (bytes === 4) return Uint8Array; if (bytes === 2) return Uint16Array; return Uint8Array; }