/TiImageManipulator

Image manipulator module for Titanium 3.2 (only iOS)

Primary LanguagePythonMIT LicenseMIT

TiImageManipulator

Image manipulator module for Titanium 3.2 (only iOS)

Usage

See example/app.js

Download the compiled release

Feature (Current release)

  • Resize image
    Ti.Blob.imageAsResized is BROKEN! This module provide alternate resize method!

Sample code

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
});

License

See LICENSE file