There is no problem loading the pictures in the project. An error will be reported when loading the online pictures
resolvent:
image.setAttribute(‘crossOrigin’, ‘anonymous’);
Reason: when canvas is drawn, online pictures involve cross domain problems.
Of course, while setting the front end, you also need to set it in the background to allow cross domain access to pictures.