search

Home  >  Q&A  >  body text

javascript - Can nodejs crop images?

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...’

为情所困为情所困2743 days ago960

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑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.

    reply
    0
  • 三叔

    三叔2017-06-22 11:56:27

    Yes, you need to use some packages http://m.blog.csdn.net/zhcy_8...

    reply
    0
  • 仅有的幸福

    仅有的幸福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/

    reply
    0
  • Cancelreply