pdftopic
pdftopic copied to clipboard
Error in sharp_lib while using "bufferstoappend" function
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)?