I am using node imagemagick module's convert function When I am using this command through terminal then it is working fine
convert /home/manish/Downloads/new_images/slim_fit_double_breasted_coat_base.png /home/manish/Desktop/Medium-Vichy-9274-Fabric-Gauloise-058.jpg \( -clone 0 -auto-level \) \( -clone 1 -clone 0 -alpha set -virtual-pixel transparent -compose displace -set option:compose:args -5x-5 -composite \) fabric2.png
but when I am passing the same command in node module then it is not giving expected result.
here is my code
var im = require('imagemagick');
im.convert(['/home/manish/Downloads/new_images/slim_fit_double_breasted_coat_base.png','/home/manish/Desktop/green-flower-lavender-eye-pillow-fabric.jpg', '-clone', '0', '-auto-level','-clone','1','-clone','0','-alpha' , 'set' ,'-virtual-pixel','transparent','-compose','displace','-set','option:compose:args -5x-5 ','-composite','fabricted111.png'],
function (err, stdout) {
if (err) throw err;
console.log('stdout:', stdout);
});
it is giving error at this argument
'-set','option:compose:args -5x-5 ','-composite'