Tag: node gm

Meteor.JS CollectionFSvideo图像缩略图(graphicsMagick)

我正在使用CollectionFS上传文件的一个Meteor应用程序。 我能够上传并生成图像的缩略图。 但是我的问题是:我应该如何为video创build缩略图? 我可以看到,它可以通过命令行︰https : //superuser.com/questions/599348/can-imagemagick-make-thumbnails-from-video 但是我怎么能把这个应用到我的Meteor代码中。 这是我在做什么: VideoFileCollection = new FS.Collection("VideoFileCollection", { stores: [ new FS.Store.FileSystem("videos", {path: "/uploads/videos"}), new FS.Store.FileSystem("videosthumbs", {path: "/uploads/videosthumbs", beforeWrite: function(fileObj) { // We return an object, which will change the // filename extension and type for this store only. return { extension: 'png', type: 'image/png' }; }, transformWrite: function(fileObj, readStream, […]