rikukissa / node-red-contrib-image-output

🏞 Easy way of previewing and examining images in your flows
MIT License
13 stars 6 forks source link

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

Open hengying opened 3 years ago

hengying commented 3 years ago

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?