Skip to content

neilakoh/Upload-Feature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Upload-Feature

DEPEND­ENCIES:

https://github.com/CollectionFS/Meteor-CollectionFS
- $ meteor add cfs:standard-packages
- $ meteor add cfs:filesystem

https://github.com/CollectionFS/Meteor-CollectionFS/wiki/Image-Manipulation
- meteor add cfs:graphicsmagick

Useful Links:
http://stackoverflow.com/questions/24698968/how-to-create-a-thumbnail-that-fills-a-certain-area-in-meteor-with-collectionfs

- gm(readStream, fileObj.name()).autoOrient().resize('100', '100', "^").gravity('Center').extent('100', '100').stream().pipe(writeStream);

Specify the collection field (store) to display on the client:

https://github.com/CollectionFS/Meteor-CollectionFS#security {{#each images}} URL: {{this.url}} <img src="{{this.url store='thumbnail'}}" alt="thumbnail"> {{/each}}

About

Upload Features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published