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

Menu