diff options
Diffstat (limited to 'apps/contacts/photo.php')
-rw-r--r-- | apps/contacts/photo.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/contacts/photo.php b/apps/contacts/photo.php index 478ef829cae..756aae63c4d 100644 --- a/apps/contacts/photo.php +++ b/apps/contacts/photo.php @@ -63,6 +63,9 @@ if( is_null($content)){ } } if($image->loadFromBase64($child->value)) { + if($image->width() > 200 || $image->height() > 200) { + $image->resize(200); + } header('Content-Type: '.$mime); $image(); exit(); |