Skip to content Skip to sidebar Skip to footer

Nodejs - Error: Spawn Enoent While Adjusting Image Size Using Module Gm

I am trying to create a thumbnail with an image that I have already saved. I am using the module gm to adjust the size of the image. var gm = require ('gm'); var fs = require('fs')

Solution 1:

Replace:

var gm = require('gm');

for

var gm = require('gm').subClass({ imageMagick: true });

Solution 2:

Recipe for MacPorts users only (based on @RevNoah notice):

sudo port install GraphicsMagick

It will install GraphicsMagick library.

Post a Comment for "Nodejs - Error: Spawn Enoent While Adjusting Image Size Using Module Gm"