1. Alvaro Videla
  2. cloudstagram

Commits

Alvaro Videla  committed 0ab6fbd

uses node.js resizer

  • Participants
  • Parent commits a9b568c
  • Branches master

Comments (0)

Files changed (1)

File lib/resize.js

View file
  • Ignore whitespace
     queue: 'resize_queue',
     routingKey: '',
     callback: function(msg, headers, deliveryInfo) {
+
         console.log("__dirname", __dirname);
         filename = "small_" + msg.filename;
         tmpPath = __dirname + "/../tmp/" + filename;
+
         image_storage.readGsFile(msg.filename, function(error, gsData) {
             console.log('resize_consumer readGsFile');
             im.resize({
 
 exports.startConsumers = function() {
     thumper.startConsumers([
-  //      resize_consumer,
+        resize_consumer,
         add_image_to_user_consumer, 
         new_image_consumer,
-        image_to_followers_consumer,
+        image_to_followers_consumer
     ]);  
 };