mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 20:10:19 +01:00
* 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
0fcae564f2
commit
a2c2655ef0
@ -949,10 +949,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))
|
||||
{
|
||||
|
@ -703,7 +703,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'] = HTTP_WebDAV_Server::mkprop('supported-report-set',array(
|
||||
|
Loading…
Reference in New Issue
Block a user