summaryrefslogtreecommitdiffstats
path: root/apps/contacts/photo.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-01-27 21:34:56 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-01-31 19:32:24 +0100
commit6c340416d9020f40031119d1d76bf797066895ec (patch)
treee5e50d04d96ef0a1d70266b66a44dfe256962309 /apps/contacts/photo.php
parentfdf3df3de591845df5255b04eabe12e794faa1f1 (diff)
downloadnextcloud-server-6c340416d9020f40031119d1d76bf797066895ec.tar.gz
nextcloud-server-6c340416d9020f40031119d1d76bf797066895ec.zip
Resize profile picture if bigger than 200px on either x or y.
Bolded text on message box.
Diffstat (limited to 'apps/contacts/photo.php')
-rw-r--r--apps/contacts/photo.php3
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();