esm-potrace-wasm icon indicating copy to clipboard operation
esm-potrace-wasm copied to clipboard

Bug: Image size limit

Open foomoon opened this issue 3 years ago • 3 comments

This library produces a "RangeError: offset is out of bounds" when loading LARGE images. I have not isolated the break point, but for reference this image will definitely cause the problem condition and I'm sure I could find examples where it occurs on images half that size. Changing input options does not fix the problem. (Using safari and chrome on mac)

foomoon avatar Jun 17 '22 14:06 foomoon

Yes, I have also noticed this. I wonder if @sylmroz who added direct color support has an idea how to fix this?

tomayac avatar Jun 17 '22 14:06 tomayac

Hello, is there a solution to this bug? I am having the same issue

damiano216 avatar Sep 14 '22 09:09 damiano216

Unfortunately not yet. If you have the cycles to investigate, this was introduced in https://github.com/tomayac/esm-potrace-wasm/pull/5/files, which added direct color support.

tomayac avatar Sep 14 '22 15:09 tomayac