Image manipulator module for Titanium 3.2 (only iOS)
See example/app.js
- Resize image
Ti.Blob.imageAsResized is BROKEN! This module provide alternate resize method!
var TiImageManipulator = require('net.imthinker.ti.imagemanipulator');
var resized_blob = TiImageManipulator.resizeImage({
image: <YOUR IMAGE BLOB>,
width: 160,
height: 160,
keepAspect: true // If you want to keep aspect ratio
});
See LICENSE
file