node-quickthumb icon indicating copy to clipboard operation
node-quickthumb copied to clipboard

Can't resize image

Open OtakuAndFitness opened this issue 8 years ago • 6 comments

It said this error: events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn identify ENOENT at exports._errnoException (util.js:746:11) at Process._handle.onexit (child_process.js:1053:32) at child_process.js:1144:20 at process._tickCallback (node.js:355:11)

OtakuAndFitness avatar Jul 15 '16 01:07 OtakuAndFitness

More details appreciated, do you have imagemagick or graphicsmagick installed?

zivester avatar Jul 20 '16 12:07 zivester

Any news about this issue? getting same here.

jialbanc avatar Mar 15 '18 22:03 jialbanc

@jialbanc could you provide more details? Do you have imagemagick or graphicsmagick installed?

zivester avatar Mar 18 '18 17:03 zivester

@zivester Yes I installed this one for Windows (ImageMagick-7.0.7-26-Q16-x64-dll.exe) https://www.imagemagick.org/script/download.php#windows, it throws the same error

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

Error: spawn identify ENOENT
    at exports._errnoException (util.js:1023:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

The command magick -version it shows

Version: ImageMagick 7.0.7-26 Q16 x64 2018-03-12 http://www.imagemagick.org Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Visual C++: 180040629 Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg lcms lqr openexr pangocairo png ps raw rsvg tiff webp xml zlib

jialbanc avatar Mar 19 '18 14:03 jialbanc

Sorry I don't have a windows machine to test this out... my first guess is that the identify command is not available with your installed version of imagemagick. I'm not sure if the library I'm using supports Windows (https://github.com/rsms/node-imagemagick).

I believe the library would need to move to graphiksmagick or a native port of imagemagick (such as https://github.com/elad/node-imagemagick-native) to work on Windows. Unfortunately I don't have the time at the moment to port the project.

zivester avatar Mar 20 '18 13:03 zivester

The problem come from Imagemagick during the installation there is a button you need to check that tells the script to install "legacy" utilities.

Just reinstall Imagemagick with this option activated and quickthumb work on windows.

capture

Samueleroux avatar May 03 '18 11:05 Samueleroux