From 693a819d57064e8f84945f18d092311aca057ac3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 10 Feb 2012 09:06:25 +0000 Subject: [PATCH] setting CardDAV:max-image-size on addressbook collections, so iOS scales it down before sending --- addressbook/inc/class.addressbook_groupdav.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index 2717afc41d..3c017407aa 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -585,6 +585,9 @@ class addressbook_groupdav extends groupdav_handler // default addressbook description: can be overwritten via PROPPATCH, in which case it's already set $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); + // supported reports (required property for CardDAV) $props['supported-report-set'] = HTTP_WebDAV_Server::mkprop('supported-report-set',array( HTTP_WebDAV_Server::mkprop('supported-report',array(