Skip to content
Snippets Groups Projects
Commit 6c340416 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

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

Bolded text on message box.
parent fdf3df3d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
<div id="messagebox">
<table width="100%" style="border: 0;">
<tr>
<th id="messagebox_msg"></th>
</tr>
</table>
<div id="messagebox_msg"></div>
</di>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment