Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4141] Compress / Change Size of Images when taken from the camera

GitHub Issuen/a
TypeNew Feature
Resolution Date2011-09-02T13:50:21.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sn/a
ReporterRick Blalock
AssigneeReggie Seagraves


Ability to change the compression / size of images in an app. Example use case: Developer wants a user to take a pic then immediately upload to a server. iPhone 4's camera takes large pictures that might not be suitable in all scenarios. The ability to choose the compression rate of the new image would be ideal. It looks like we're using this method in TiBlob.m but would be nice to choose what the second arg value is instead of hardcoding it to '1' - http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/func/UIImageJPEGRepresentation


  1. Reggie Seagraves 2011-06-21

    Follow up with Android team to see if this is supportable on their platform.
  2. Reggie Seagraves 2011-07-18

    This issue will be resolved by providing the following module.
  3. Jeff English 2011-07-19

    The TiBlob proxy implementation already includes several image transformation methods (resize, thumbnail, etc). The particular feature requested by this ticket is for the ability to specify the compression rate used on the -(NSData*)data property. This could be implemented by adding a "compressionQuality" property to the TiBlob proxy.
  4. Jon Alter 2011-09-02

    Associated Helpdesk Ticket

  5. Jon Alter 2011-09-02

    Closing. This feature will be implemented in a module.

JSON Source