diff options
author | friendica <info@friendica.com> | 2012-06-07 15:44:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-07 15:44:56 -0700 |
commit | f4a80fcf2474a13b2d733f59f1a928b40841d83c (patch) | |
tree | 27c32cdfbaa3a63877b118609b5177c705ff747a /include/user.php | |
parent | fcf8f301e595444620f07ea0e01994ea99ee961b (diff) | |
parent | 2438c6e45d47ca194b51f99ddf113112fbb6ccb9 (diff) | |
download | volse-hubzilla-f4a80fcf2474a13b2d733f59f1a928b40841d83c.tar.gz volse-hubzilla-f4a80fcf2474a13b2d733f59f1a928b40841d83c.tar.bz2 volse-hubzilla-f4a80fcf2474a13b2d733f59f1a928b40841d83c.zip |
Merge pull request #328 from fabrixxm/master
PNG with alpha channel
Diffstat (limited to 'include/user.php')
-rw-r--r-- | include/user.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/user.php b/include/user.php index af43a2b52..2477438bf 100644 --- a/include/user.php +++ b/include/user.php @@ -284,7 +284,11 @@ function create_user($arr) { $filename = basename($photo); $img_str = fetch_url($photo,true); - $img = new Photo($img_str); + // guess mimetype from headers or filename + $type = guess_image_type($photo,true); + + + $img = new Photo($img_str, $type); if($img->is_valid()) { $img->scaleImageSquare(175); @@ -324,4 +328,4 @@ function create_user($arr) { $result['user'] = $u; return $result; -}
\ No newline at end of file +} |