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; }