luthraG / image-watermark

A powerful watermark library for single page images, multipage images, and pdf files based on ImageMagick for node.js
https://www.npmjs.com/package/image-watermark
MIT License
102 stars 33 forks source link

Trying the Sample and getting: Error: spawn identify ENOENT #8

Open sougiovn opened 7 years ago

sougiovn commented 7 years ago

I'm trying to do the Sample with a .pdf or .png files and I'm getting this error.

I'm using node v7.7.1

screen shot 2017-03-15 at 19 56 51

martlo commented 7 years ago

You need to install ImageMagick on your computer before running this.

chping2125 commented 7 years ago

I installed ImageMagick , but still being error

naeem-gitonga commented 7 years ago

@chping2125 did you find a solution to the error?

swapnilkadam92 commented 7 years ago

I am also getting same error. Is there any solution?

NIVJAIN commented 6 years ago

i am getting the same error.

events.js:182 throw er; // Unhandled 'error' event ^

Error: spawn identify ENOENT at exports._errnoException (util.js:1016:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19) at onErrorNT (internal/child_process.js:366:16)

piraveen commented 6 years ago

Thanks @martlo !

Installing imagemagick fixed the issue for me on Mac OSX

  1. Install with Homebrew brew install imagemagick
  2. Update imagemagick symlinks if necessary brew link imagemagick --overwrite

And try again 😉

jeremylzy commented 6 years ago

I installed ImageMagick , but still being error

piraveen commented 6 years ago

You may also need to install "ghostscript"

  1. Install with Homebrew brew install ghostscript
  2. Update imagemagick symlinks if necessary brew link imagemagick --overwrite And try again 😉
zhangshichuan commented 5 years ago

Image-Watermark::embedWatermark : Error in applying watermark : Error: Command failed: convert-im6.q16: unable to read font `helvetica' @ error/annotate.c/RenderFreetype/1361.

harshitgupta commented 5 years ago

I had trouble running it with node v10.*. Worked fine with node v8.*

wasurocks commented 4 years ago

It's working! You need to just brew install imagemagick

I followed @piraveen 's comment and it works like a charm!

justfathi commented 4 years ago

I installed ImageMagick , but still being error

How did you install it?

drizzt00s commented 2 years ago

I am confused on this for 7 hours having no clues how to fix this. I installed ImageMagick and it is in Path, still got Error: spawn identify ENOENT. anyone knows how to fix this?

lanlee1988 commented 2 years ago

I have the problem of brew install imagemagick on windows, anyone knows the solution?

piraveen commented 2 years ago

@lanlee1988 brew is for Mac OSX. You can download the binaries for windows directly from Imagemagick official website => https://imagemagick.org/script/download.php#windows

I have the problem of brew install imagemagick on windows, anyone knows the solution?

piraveen commented 2 years ago

@justfathi @drizzt00s Is your OS Mac OSX ? If so, you need to update the symlinks brew link imagemagick --overwrite