0

I would like to use the command

convert in.png -morphology Close Square out.jpg

with the gm module using the imagemagick subclass :

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

gm(FILEPATH).morphology('...')...;

But this method does not seem to be defined. I couldn't find any section about how to use undefined imagemagick functions ( custom commands ).

Did any of you guys successfully run a custom command with nodejs's gm module ?

sami_analyst
  • 1,751
  • 5
  • 24
  • 43
  • GraphicsMagick is an old spin-off of Imagemagick and does not seem to keeping current with the changes made to Imagemagick. – fmw42 Jan 08 '18 at 18:35
  • Thanks, do you also have a proposal ? – sami_analyst Jan 08 '18 at 19:07
  • I know little about GraphicsMagick. I suggest you simply use Imagemagick as it is more powerful and feature rich. Node.JS can use imagemagick can it not? It should just be an matter of configuration. – fmw42 Jan 08 '18 at 21:49

0 Answers0