You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it still the case that Windows has problems with filesystem paths longer than 260 characters? If so, use of toNamespacedPath is probably the right approach here.
AlttiRi
added a commit
to AlttiRi/get-image-data
that referenced
this issue
Dec 15, 2024
Possible bug
It works fine until I pass a long path to load an image with
sharp
function.As workaround I can manually read the file with Node.js and pass
ArrayBuffer
of the image tosharp
function instead of the image path string.Is this a possible bug in a feature of sharp, unrelated to installation?
It's bug of handling a Windows filesystem long path.
ENV
What are the steps to reproduce?
Run the TS code.
What is the expected behaviour?
No errors. A workaround is not needed. It just works from the box.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
Please provide sample image(s) that help explain this problem
Generated.
The text was updated successfully, but these errors were encountered: