pdftopic icon indicating copy to clipboard operation
pdftopic copied to clipboard

Error in sharp_lib while using "bufferstoappend" function

Open Uhoplan opened this issue 3 months ago • 5 comments

When we use "bufferstoappend" function it calls the "getDimmentions" function, which returns an object with the key - "channels": the number of elements in the dimensions array, corresponding to the number of images processed. After this, the "channels" key and its value are passed to the "sharp" library, which throws the exception "Expected number between 3 and 4 for create.channels but received "the number of elements" of type number". Perhaps the library expects the number of image channels (RGB)?

Uhoplan avatar Apr 03 '24 19:04 Uhoplan