Resize profile picture if bigger than 200px on either x or y.

Bolded text on message box.
This commit is contained in:
Thomas Tanghus 2012-01-27 21:34:56 +01:00
parent fdf3df3de5
commit 6c340416d9
2 changed files with 4 additions and 5 deletions

View file

@ -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();

View file

@ -1,7 +1,3 @@
<div id="messagebox">
<table width="100%" style="border: 0;">
<tr>
<th id="messagebox_msg"></th>
</tr>
</table>
<div id="messagebox_msg"></div>
</di>