Skip to content

Commit

Permalink
Don't output jpeg if we request png
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Mar 26, 2017
1 parent f962b5d commit 6e537c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/Avatars/AvatarNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public function get() {
ob_start();
if ($this->ext === 'png') {
imagepng($res);
} else {
impagejpeg($res);
}
imagejpeg($res);

return ob_get_clean();
}
Expand Down

0 comments on commit 6e537c8

Please sign in to comment.