[TIMOB-4141] Compress / Change Size of Images when taken from the camera
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-09-02T13:50:21.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Rick Blalock |
Assignee | Reggie Seagraves |
Created | 2011-05-19T12:45:09.000+0000 |
Updated | 2012-02-10T00:48:24.000+0000 |
Description
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
Follow up with Android team to see if this is supportable on their platform.
This issue will be resolved by providing the following module.
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.
Associated Helpdesk Ticket
http://appc.me/c/APP-499546Closing. This feature will be implemented in a module.