Please help with this error, use cfs:graphicsmagick for Fs.Store.GridFS, I have this code…
`Avatar = new FS.Collection(“avatar”, {
stores: [new FS.Store.GridFS(“avatar”, {
beforeWrite: function (fileObj) {
return {
extension: ‘png’,
type: ‘image/png’
};
},
transformWrite: function (fileObj, readStream, writeStream) {
gm(readStream, fileObj.name()).resize(‘50’, ‘50’).stream().pipe(writeStream);
}
})]
});
Avatar.allow({
insert: function () {
return true;
},
update: function () {
return true;
},
remove: function () {
return true;
}
});`
But this generates this error …
Thanks for the help…