I'm trying to use GraphicsMagick to resize the image before uploading to Amazon S3.
I was able to get the binary data of the image file from like this:
reader.onload = function(e) {
Meteor.call('s3_upload', file, reader.result)
}
reader.readAsDataURL( file )
But the problem is reader.result is not a file URL. It's a binary string data.
How can I take this binary string data and resize it?
This might be a late response to your question but answering this for anyone who has the same question.
You can resize images before upload with GraphicsMagick from transformWrite option while initializing the Fs.Store
Image Manipulation from collectionFS, here is a snippet from collectionFS S3 doc