Most js/wasm libraries that transform images, require transforming it to Uint8Array
first.
The problem is that image converted to Uint8Array
can take x10 more memory than image stored on a drive (10MB jpeg takes ~120MB memory).
And this creates OOM problems with computing based on V8 and limited ram.
So the question, is there no other way to transform images than converting it to Uint8Array
?