donmccurdy / donmccurdy/ndarray-lanczos
It fails if I try to resize image which already has the right dimensions
Open
bug
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
the call `lanczos3(pixels, resizedPixels)` fails with
`ndarray-lanczos.modern.js?adce:1 Uncaught (in promise) RangeError: offset is out of bounds
at Int16Array.set ()
at r (ndarray-lanczos.modern.js?adce:1)
at l (ndarray-lanczos.modern.js?adce:1)
at h (ndarray-lanczos.modern.js?adce:1)`
when the resizedPixels has the same shape as pixels.
Sorry, I didnt had time jet to investigate further, I just workarounded it with `if( same shape) return originalArray;`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.