Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please specify a storage - S3 #94

Open
alexpchin opened this issue Jun 22, 2016 · 1 comment
Open

Please specify a storage - S3 #94

alexpchin opened this issue Jun 22, 2016 · 1 comment

Comments

@alexpchin
Copy link

I'm trying to get the module to work with S3 - however, I keep getting the error:

Please specify a storage

I've tried both:

var imager = new Imager(imagerConfig.variants.item, imagerConfig.storages.amazon);
var imager = new Imager(imagerConfig.storages.amazon);

With the config:

var config = require("./config");

/**
 * Expose
 */

 exports.variants = {
   item: {           // variant
     thumb: {        // preset
       options: {    // preset options
         pool: 5,
         scale: { width: 200, height: 150, type: 'contain' },
         crop: { width: 200, height: 150, x: 0, y: 0 },
         format: 'png',
         rotate: 'auto',
       },
       rename: function (file, preset) {
         return;
         // return 'users/1/' + preset + '/' + file.name;
       }
     },
     large: {
       original: true  // upload original image without image processing
     }
   }
 };

 exports.storages = {
   local: {
     provider:  'local',
     path:      '/tmp',
     mode:      0777
   },
   amazon: {
     provider: 'amazon',
     key:       config.amazon.secret,
     keyId:     config.amazon.id,
     container: config.amazon.bucket
   }
 };
@alexpchin alexpchin changed the title S3 Please specify a storage - S3 Jun 22, 2016
@ludapops
Copy link

ludapops commented Sep 2, 2016

Also experiencing this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants