The front end uses canvas to generate thumbnails, and the thumbnails turn into black images.

found a JS scheme that uses canvas to generate thumbnails on the Internet, which can generate thumbnails, but in some cases, the generated thumbnails are black and you can"t see what the original thumbnails look like. Because the previous paragraph is not very good, so I can"t understand the JS code. The following is the project JS code. I hope you can give us some advice. Thank you very much!

Feb.28,2021

try the smaller picture and the smaller thumbnail to see if there will be a black problem

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-1b30e0a-2bd59.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-1b30e0a-2bd59.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?