(function () {
    'use strict';
    var TiImageManipulator = require('net.imthinker.ti.imagemanipulator');
    Ti.API.info('module is => ' + TiImageManipulator);

    var win = Ti.UI.createWindow({
        backgroundColor: '#FFFFFF'
    });
    win.addEventListener('open', function () {
        var image_file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'sample.jpg'),
            image_blob = image_file.read();

        /* Ti.API.debug('blob is => ' + image_blob);
        Ti.API.debug('path is => ' + image_blob.nativePath);
        Ti.API.debug('width is => ' + image_blob.width);
        Ti.API.debug('height is => ' + image_blob.height);
        Ti.API.debug('mimetype is => ' + image_blob.mimeType);
        Ti.API.debug('filesize is => ' + image_blob.size); */

        var resized_blob = TiImageManipulator.resizeImage({
            image: image_blob,
            width: 160,
            height: 160,
            keepAspect: true
        });

        var file = Ti.Filesystem.createTempFile();
        file.write(resized_blob);

        Ti.API.debug('blob is => ' + resized_blob);
        Ti.API.debug('path is => ' + resized_blob.nativePath);
        Ti.API.debug('width is => ' + resized_blob.width);
        Ti.API.debug('height is => ' + resized_blob.height);
        Ti.API.debug('mimetype is => ' + resized_blob.mimeType);
        Ti.API.debug('filesize is => ' + resized_blob.size);

        // Upload test
        var http = Ti.Network.createHTTPClient();
        http.onload = function (e) {
            Ti.API.debug(e);
        };
        http.onerror = function (e) {
            Ti.API.error(e);
        };
        http.open('POST', 'http://127.0.0.1:9393/upload');
        http.send({
            file: resized_blob
        });

        var image_view = Ti.UI.createImageView({
            image: resized_blob,
            width: Ti.UI.SIZE,
            height: Ti.UI.SIZE
        });
        win.add(image_view);
    });
    win.open();
}());

@@ -432,17 +432,17 @@
        /
-*
+/
  Ti.API.
@@ -475,32 +475,35 @@
 e_blob);%0A       
+ //
  Ti.API.debug('p
@@ -539,32 +539,35 @@
 vePath);%0A       
+ //
  Ti.API.debug('w
@@ -599,32 +599,35 @@
 .width);%0A       
+ //
  Ti.API.debug('h
@@ -661,32 +661,35 @@
 height);%0A       
+ //
  Ti.API.debug('m
@@ -727,32 +727,35 @@
 meType);%0A       
+ //
  Ti.API.debug('f
@@ -793,11 +793,8 @@
 ze);
- */
 %0A%0A  
@@ -1447,24 +1447,27 @@
 test%0A       
+ //
  var http = 
@@ -1496,32 +1496,35 @@
 lient();%0A       
+ //
  http.onload = f
@@ -1536,32 +1536,35 @@
 on (e) %7B%0A       
+ //
      Ti.API.debu
@@ -1568,32 +1568,35 @@
 ebug(e);%0A       
+ //
  %7D;%0A        http
@@ -1586,24 +1586,27 @@
 / %7D;%0A       
+ //
  http.onerro
@@ -1628,28 +1628,31 @@
 ) %7B%0A        
+//
     
+ 
 Ti.API.error
@@ -1663,16 +1663,19 @@
 %0A       
+ //
  %7D;%0A    
@@ -1673,24 +1673,27 @@
 / %7D;%0A       
+ //
  http.open('
@@ -1739,16 +1739,19 @@
 %0A       
+ //
  http.se
@@ -1758,24 +1758,27 @@
 nd(%7B%0A       
+ //
      file: r
@@ -1788,32 +1788,35 @@
 zed_blob%0A       
+ //
  %7D);%0A%0A        va

Fix example/app.js