In JS, I require in the node gm module (which I want to use with imageMagick, not the default graphicsMagick), passing this argument:
var gm = require('gm').subClass({ imageMagick: true });
How can I do this in ES6?
import gm from "gm";
gm.subClass({ imageMagick: true });
does not work because gmGraphicsMagick is not installed by default.
source
share