Drawing pictures with Canvas should be one of its features or highlights. Of course, with the File API, JS becomes unrivaled. Next, I will show you how to draw a picture and create a three-dimensional effect.
The code is as follows:
php中文网
Image to use:

Canvas: