Reputation: 59
In my App User are able to upload some Images in Android to a Web Server with php. What image size would you prefer? I want to resize the image before uploading and I don't know which size would be the best... And which quality would you prefer? Which is the best quality, for a small file size and an accetable image quality?
Last question. The Users can doanload the image in a ListView. then after clicking on it they can see the image in a big imageview. Would you create the thumbs on the fly in php or would you save an thumb when uploading? If you would save when uploading, please tell me a good size and quality for thumbs.
Thanks!
Upvotes: 0
Views: 337
Reputation: 7708
There are too many questions in this. :) Let me try.
a. While uploading the image things to be kept in mind are speed of the network as well as the capacity of the phone. You could upload say a max_width/max_height of 1024px on a 2.5G network connection. However if you want to upload many images at a time, you would be better off reducing the size further.
b. While downloading, you should download the entire image and save it on file system. For listview you should scale the image to thumbnail size while reading and show with scale=1 for full-blown image.
c. One can convert the image to base64 while uploading it and then on the server side convert it back to png/jpg.
d. JPEG with 75% quality and max_width/max_height of 1024 has been working fine for me.
Upvotes: 0