node-red-contrib-image-output icon indicating copy to clipboard operation
node-red-contrib-image-output copied to clipboard

When upload image taken by camera of mobile phone, RangeError: Maximum call stack size exceeded

Open hengying opened this issue 3 years ago • 0 comments

The phone is Samsung Note 10.

When I upload an image from the phone's photo library, it's OK. When I upload image by taking picture, the error occured: RangeError: Maximum call stack size exceeded

The upload example is copied from here: https://flows.nodered.org/flow/c70d0b4c54b583cf30c7e989b74feb68

This is the working screen capture: 屏幕快照 2021-03-22 11 20 22 This is the error screen capture: 屏幕快照 2021-03-22 11 20 58 屏幕快照 2021-03-22 11 21 05

If I remove the first image viewer, the "scaleToFit" node will report the same error.

The image uploaded is displayed on the "/upload" page, so the image is truly uploaded to Node-RED server.

Maybe the photo is too large? But I don't understand what's the difference between taking photo now and the photo already taken. Should they be the same size?

hengying avatar Mar 22 '21 03:03 hengying