First download and install GraphicsMagick or ImageMagick
then
yarn add group-avatar
const generatorAvatar = require("group-avatar");
let inputs = ['a.jpg', 'b.jpg', 'c.jpg',...];
generatorAvatar.draw(inputs,'o.png')
generatorAvatar.draw(input,output);
input:Array
output:string result image