javascript - Can nodejs crop images?
为情所困
为情所困 2017-06-22 11:54:27
0
3
844

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

为情所困
为情所困

reply all (3)
巴扎黑

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/

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!