diff options
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Avatars/AvatarNode.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Avatars/AvatarNode.php b/apps/dav/lib/Avatars/AvatarNode.php index 17edf80d217..4030f482510 100644 --- a/apps/dav/lib/Avatars/AvatarNode.php +++ b/apps/dav/lib/Avatars/AvatarNode.php @@ -62,8 +62,9 @@ class AvatarNode extends File { ob_start(); if ($this->ext === 'png') { imagepng($res); + } else { + imagejpeg($res); } - imagejpeg($res); return ob_get_clean(); } |