Take a look at he following article, it lays some of the options out.
They are all fairly good options.

http://blog.everythingflex.com/2009/01/19/green-threading-psuedo-threads
-or-air-as-a-server/

To answer your second question, where ever you and your users are
comfortable with the resizing happening. If your users are happy with a
bit of a delay, do it on the client (especially if you want to show them
the results and ask if they are happy with it). If they are happier with
a fire-and-forget scenario, offload it onto your server.

As with everything, what meets the user's needs is the best way to do
it!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
<blocked::http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk

________________________________

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of gimlilongbow
Sent: 03 November 2009 16:17
To: flexcoders@yahoogroups.com
Subject: [flexcoders] JPG Encoding Speed Issue

 

  

Greetings, all,
     I'm working on a Flex project in the AIR platform which I want to
generate several different file sizes of JPGs that I've brought into the
program. The program locks up when generating the new JPGs, though, and
I understand that has to do with the single-thread model in Flash. I've
run across asynchronous encoders like the alchemy encoder
<http://segfaultlabs.com/blog/post/asynchronous-jpeg-encoding>   and the
switchonthecode async encoder
<http://www.switchonthecode.com/tutorials/flex-tutorial-an-asynchronous-
jpeg-encoder> . Any suggestions on this? 

Also, I'll be uploading these different sized JPGs to a server. I guess
a more basic question would be if the server (a typical LAMP setup) or
the client (built in Flex+Air) is the better place to do this resizing? 

Thanks for your time!

~Gimli



Reply via email to