forked from extern/egroupware
* Adressbook/CardDAV: changed (down-)scaling of images to width of 240px (was 60px) to cater for higher screen resolutions
This commit is contained in:
parent
eefc115767
commit
43f558830c
@ -966,10 +966,10 @@ class addressbook_bo extends addressbook_so
|
||||
* Resizes photo to 60*80 pixel and returns it
|
||||
*
|
||||
* @param string|FILE $photo string with image or open filedescribtor
|
||||
* @param int $dst_w=60 max width to resize to
|
||||
* @param int $dst_w=240 max width to resize to
|
||||
* @return string with resized jpeg photo, null on error
|
||||
*/
|
||||
public static function resize_photo($photo,$dst_w=60)
|
||||
public static function resize_photo($photo,$dst_w=240)
|
||||
{
|
||||
if (is_resource($photo))
|
||||
{
|
||||
|
@ -833,7 +833,8 @@ class addressbook_groupdav extends groupdav_handler
|
||||
$props['addressbook-description'] = HTTP_WebDAV_Server::mkprop(groupdav::CARDDAV,'addressbook-description',$props['displayname']);
|
||||
}
|
||||
// setting an max image size, so iOS scales the images before transmitting them
|
||||
$props['max-image-size'] = HTTP_WebDAV_Server::mkprop(groupdav::CARDDAV,'max-image-size',4096);
|
||||
// we currently scale down to width of 240px, which tests shown to be ~20k
|
||||
$props['max-image-size'] = HTTP_WebDAV_Server::mkprop(groupdav::CARDDAV,'max-image-size',24*1024);
|
||||
|
||||
// supported reports (required property for CardDAV)
|
||||
$props['supported-report-set'] = array(
|
||||
|
Loading…
Reference in New Issue
Block a user