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!