Freshheads ImageFactory module for Titanium which currently provides access to Androids ExifInterface for image files. Also provides a memory conservative utility method to rotate an image based on Exif information and resize it, maintaining aspect ratio, in one pass.
To access this module from JavaScript, you would do the following:
var ImageFactory = require("fh.imagefactory");
The ImageFactory variable is a reference to the Module object.
Read the value of an Exif tag inside an image file.
- filename [string]: The string specifying the filename of the image file to read.
- tag [string]: The tag to read from the image file. Use one of the constants also provided in this module.
Rotate, resize and compress the image to a JPEG file in one pass.
- filename [string]: The string specifying the filename of the image file to modify. This file will be overwritten!
- size [int]: The size in pixels to resize to. This will be the size of the longest edge, remaining aspect ratio.
- quality [int]: The JPEG output quality specified as an integer between 0 and 100 with 100 being the highest quality.
See example folder for an example app.js.
[Stefan Moonen] 1
Copyright (c) 2013 by Freshheads BV. Please see the LICENSE file included in the distribution for further details.