Suggesstion for executing a PHP image treatment script
<p>I have a <a href="http://pastebin.com/f70e3ccf7" rel="nofollow">PHP script</a> that has as input a target image and an image dir to make a treatment.
Wanting to make an Android app, i have thinked about this two ideas:
1- Choose the images in the Android device and send them to the server, the server will make treatments and send the output final image to the device.
Problem: A high amount of data will be sent according to the number of images and their size.
2- Execute the php script locally in the device, but i think that it must have a good CPU and i don't know if Android OS can handle that.</p>

<p>Can you please advice me and propose some ideas/solutions?
Thank you very much</p>
