donmccurdy / donmccurdy/ndarray-lanczos

It fails if I try to resize image which already has the right dimensions

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.