Re: Slow Image Sizing

2017-04-24 Thread Erik J. Thomas
Thanks, Om, but it's not for thumbnails. I will look at the library though at some point, but our current issues are solved. Erik > On Apr 24, 2017, at 2:23 PM, OmPrakash Muppirala wrote: > > If it is for a chat avatar, will a thumbnail work? > Every image file has a thumbnail image embedded i

Re: Slow Image Sizing

2017-04-24 Thread OmPrakash Muppirala
If it is for a chat avatar, will a thumbnail work? Every image file has a thumbnail image embedded in the file's metadata section. You could simply read the necessary bytes and upload/display them. I have used this as3 library in the past and it works quite well: https://github.com/bashi/exif-as3

Re: Slow Image Sizing

2017-04-24 Thread Erik J. Thomas
Hey Greg: Thanks for the awesome tip. Never occurred to me to try this. By just changing to use BitmapData.encode instead of JPEGEncoder.encode, it cut 95% of the processing time off. It's now coming in at under 200 ms to resize and encode a 13 MB HDR iPhone 6 Plus photograph to 800 pixels acro

Re: Slow Image Sizing

2017-04-24 Thread Greg Dove
If JPEGEncoder is an actionscript encoder, you could switch to using the native encoding support. It is much faster. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#encode() On Tue, Apr 25, 2017 at 6:45 AM, Erik J. Thomas wrote: > Hey all: > >

Slow Image Sizing

2017-04-24 Thread Erik J. Thomas
Hey all: My flex mobile app posts social chat messages with an optional image. It uses CameraRoll to allow the user to select any image on their phone. But modern phones take HUGE pics. We don't need full res photos for the chat and don't want to use up the bandwidth uploading full images and r