Skip to content

Releases: jamgold/cropuploader

Exif support for mobile

25 Sep 22:21

Choose a tag to compare

Added automatic orientation control for mobile

roles and collection hooks

20 Jul 18:45

Choose a tag to compare

Check for the right roles to modify derivatives (admin role) and use collection hooks to remove derivatives

0.0.4_1

28 Nov 15:44

Choose a tag to compare

Fixed #5

0.0.4

28 Sep 23:56

Choose a tag to compare

add alanning:roles and allow remove/update by owner/admin

0.0.3_4

01 Aug 22:21

Choose a tag to compare

added example/settings.json

Bug fix

20 Jun 16:14

Choose a tag to compare

fixed this bug #2

Changed to MIT License

29 Apr 16:53

Choose a tag to compare

0.0.3_2

changed to MIT license

Now support for uploaded event and canvasID

28 Apr 19:01

Choose a tag to compare

You can now provide your own ID for the canvas by specifying it with canvasID="yourID" when calling the cropUploader template

<template name="my_public_images">
{{>cropUploader canvasID="public_preview" ...}}
</template>

the preview for the selected file will always be rendered into that canvas. Once you hit the upload button, the cropUploader package will generate the defined derivative and upload it and the original to S3. Upon success it will trigger uploaded on the canvas DOM element. You can catch it with an event map like so

Template.my_public_images.events({
 'uploaded #public_preview': function(event, target) {
  // react to successful upload
 }
});

In case of an error, it will set CropUploader.errorMessage. You can define an autorun to react to it

Template.my_public_images.onCreated(function(){
 this.autorun(function(){
  var error = CropUploader.errorMessage.get();
  // deal with the error
 });
});

Support hooks and additional values stored with the document

28 Apr 00:19

Choose a tag to compare

This release supports additional values to be stored with the saved image document, so when rendering the cropUploader like

{{>cropUploader thumbnailWidth=100 thumbnailHeight=100 imagetype="avatar"}}

the saved images can be recalled with

CropUploader.images.find({imagetype:'avatar',userId: Meteor.userId()});

Initial Release

25 Apr 18:59

Choose a tag to compare

cropuploader