owncloud/contacts — pull request #185 by Jonny007-MKD (2013-09-02 10:10:44+00:00)
Title: Let user customize the size of images

Hi,
I told my friend about OwnCloud and he complained about the bad resolution of the photos of his contacts after syncing them to his smartphone. This was something that I noticed before: My Samsung has a horizontal resolution of about 540px and when I did call somebody the full-width image looked quite screepy. So I decided to look into what is happening there and what could be done.

The result is this branch where the user is able to set the maximum height/width of the photos he is going to upload in the future. There is (afaik) no way to resize the existing images since they are not saved in their original resolution (perhaps the OwnCloud path is saved somewhere). As far as I comprehend [RFC 6350](http://tools.ietf.org/html/rfc6350#section-6.2.4) there is no limitation on image sizes.

Advantages:
- better images

Disadvantages:
- needs more disk space
- needs more time to sync (Setting the maximum size from 200px to 1000px enlarges the VCards from ~70kb to ~1MB). That's why I think it is best to let the user decide what size his images shall have.

ToDos:
- Decide what to do with existing images if the resolution is reduced: Shall they be resized? When?
- Add localization
- Review the changes