jerocosio / autoform-cloudinary

Easily upload images to Meteor using Cloudinary and Simple Schema
13 stars 11 forks source link

Feature Request #6

Open sean-stanley opened 9 years ago

sean-stanley commented 9 years ago

Instead of a basic file upload button, use Cloudinary's client-side image cropper/resizer before upload.

A more powerful and useful feature would be to have the ability to add basic resizing transforms at upload time so the full res image is stored but the document string contains the transforms I want.

Any thoughts?

hfogelberg commented 8 years ago

+1 on this.

As a workaround i use an after insert hook, call the server and create the versions I need. It's a bit messy, but OK for now.

imageHook = after: insert: (err, id) -> Meteor.call 'createImageCopies', id, (error)->

AutoForm.addHooks 'insertForm', imageHook