From 6c340416d9020f40031119d1d76bf797066895ec Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 27 Jan 2012 21:34:56 +0100 Subject: Resize profile picture if bigger than 200px on either x or y. Bolded text on message box. --- apps/contacts/photo.php | 3 +++ apps/contacts/templates/part.messagebox.php | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'apps/contacts') 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(); diff --git a/apps/contacts/templates/part.messagebox.php b/apps/contacts/templates/part.messagebox.php index 3681bb6e3f3..5db10e7e6c5 100644 --- a/apps/contacts/templates/part.messagebox.php +++ b/apps/contacts/templates/part.messagebox.php @@ -1,7 +1,3 @@
- - - - -
+
-- cgit v1.2.3