It is a certain width and height in the middle of a large picture cropped. The processed picture is on the server, such as ‘https://img.biaoqing.com/work...’
I have used GraphicsMagick and it is very good, but it has native dependencies and requires additional software to be installed.
Later I learned about a library written in pure JS, jimp, but I didn’t have a chance to use it.
Yes, you need to use some packages http://m.blog.csdn.net/zhcy_8...
If you only need to crop (Crop) and resize (Resize), and do not need to use Canvas to draw, graphicMagic is enough: http://aheckmann.github.io/gm/
I have used GraphicsMagick and it is very good, but it has native dependencies and requires additional software to be installed.
Later I learned about a library written in pure JS, jimp, but I didn’t have a chance to use it.
Yes, you need to use some packages http://m.blog.csdn.net/zhcy_8...
If you only need to crop (Crop) and resize (Resize), and do not need to use Canvas to draw, graphicMagic is enough:
http://aheckmann.github.io/gm/