WeChat Mini Programs's picture became so big after it was watermarked with canvas. It is useless to compress it with his interface, and then the debugging will be disconnected as soon as the real machine is debugged.

problem description

after I take a picture with my mobile phone (the byte length is about 50000 if I transfer to base64 directly), mark it with canvas, save it as a picture, then find that the picture has become so big, and use the Wechat interface to compress the picture. After that, I debug with the real machine, upload the picture (loop, and then transfer the picture to base64 and then upload it (the byte length before and after compression has not changed, about 400000 of the length), and then the real machine debugging is immediately disconnected and does not start uploading at all. Excuse me, guys, what"s going on?

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d47d-2c374.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d47d-2c374.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?