An Appcelerator module that allows access to a device's photo library
Objective-C Python JavaScript
Latest commit 87bf511 May 24, 2012 Jeremy Swensen Updated the build and version numbers to work with titanium sdk 2.0.1…


The Urban Image Photo Library Module

The purpose of this library is to provide easy access to the user's photo library.
Not only will it return the photos, but it will also return useful information about 
the photo.  This library will return the following pieces of information about a photo:

1. The full resolution of the image
2. A thumbnail of the image
3. The type of file (image or video)
4. Location information including:
	a. latitude
	b. longitude
	c. altitude
	d. course
	e. horizontal accuracy
	f. vertical accuracy
	g. speed
	h. timestamp
5. If the file is a video it will return the duration
6. Orientation
7. Creation Date
8. Available file formats
9. Ways to access the file

This library also provides a way to return certain groups of photos and to also return a 
section of photos based on start and end parameters.


1. First of all, view the "titanium.xcconfig" file located in the root of the module and make sure the TITANIUM_SDK_VERSION
   refers to a version that you have installed.  The Urban Image module was built using version  It should work on 
   previous versions of the Titanium SDK, but the iOS version needs to be 4.0 or higher due to heavy use of the iOS 
   AssetsLibrary which was made available in version 4.0.

   The second attribute to look at is the TITANIUM_SDK location.  Per instructions in the "Module Development" 
   ( guide in section 0 
   "Setting Up your Module Environment" you'll need to determine where your Titanium SDK is installed.  It may be 
   installed in "/Library/Application\ Support/Titanium" or "~/Library/Application\ Support/Titanium".  The default
   location is "/Library/Application\ Support/Titanium".

   Save any changes you've made to the "titanium.xcconfig" file.

2. Run '' this will create a zip file that can then be installed.

3. Copy the newly created zip file to the place where the Titanium SDK is installed.

   cp /Library/Application\ Support/Titanium
   --- or if you Titanium SDK is installed in your home directory ---

   cp ~/Library/Application\ Support/Titanium

4. The instructions in the "Testing your Module in a test application" section of the "Module Development" indicate
   that the Titanium compiler will unzip the newly copied module.  That hasn't been my experience.  I have found that
   it is necessary to manually unzip the module.

   cd /Library/Application\ Support/Titanium" or cd ~/Library/Application\ Support/Titanium depending up 
   on where the SDK is located.


   This will install the module into the appropriate directories.


Register your module with your application by editing `tiapp.xml` and adding your module.

	<module version="0.1">qs.urbanimage.library</module>

When you run your project, the compiler will know to automatically compile in your module
dependencies and copy appropriate image assets into the application.


Documentation for this module can be found in documentation/

An example application exists in example/app.js that demonstrates the use of the module.  
The example app displays all of the photos from the photo library along with the creation date.
If the photo has location data stored with it then you can click on the photo and it will plot the
photo's location on a map.