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...’
巴扎黑2017-06-22 11:56:27
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.
仅有的幸福2017-06-22 11:56:27
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/