imagemagick with nodejs not working

前端 未结 2 1262
眼角桃花
眼角桃花 2020-12-03 18:40

I am trying to resize an image with node-imagemagick library, but it is not working.

the code i am using to resize is

im.resize({
      srcPath: __d         


        
相关标签:
2条回答
  • 2020-12-03 19:05

    It is just that you haven't installed ImageMagick in your system. If you are using a Linux distribution you can do:

    sudo apt-get install imagemagick
    
    0 讨论(0)
  • 2020-12-03 19:12

    On windows you also need to install the imagemagick exe. The nodejs imagemagick library is just a wrapper for imagemagick exe. So it will not work untill the imagemagick exe is intalled and convert and identify executable are in path.

    0 讨论(0)
提交回复
热议问题