2

Case: I have an app for Android, Android Tablet, iPhone, iPad. Server has a backend to upload image (not the app). App user can browse these server side uploaded images on their phones.

The images which are uploaded from a server backend can be of square and rectangle dimension.

Note that I support all iOS devices and all Android devices. The simples way of doing it is serving one big image for all the devices.

Qustions:

  • What display size should be reference for the image dimension being uploaded?
  • Which sizes should be created on the server from the uploaded image?
stephan1002
  • 447
  • 2
  • 5
  • 11

2 Answers2

0

you have to upload high dimension images only.In server side there is a magic view funtionality you have to implement.In App side when you got image url from server side then check your device resolution type and then set resolution size for that image in application.

Puneet Kumar
  • 306
  • 1
  • 3
0

You could resize the images at the time of request depending on what is most important, the speed of the request or the memory footprint.

This post gives a clear example on how to resize images.

Community
  • 1
  • 1
Genkus
  • 151
  • 6
  • Agreed that resizing should be done at request time on server. But i do not see how the code you proposed could help with that. How would it be invoked? If the server uses php for instance. – greenapps Jul 17 '15 at 11:19
  • I assumed that a java server was used and in this case you could have sent the images (scaled with the provided code) via soap messages for example. – Genkus Jul 17 '15 at 11:25