Skip to:
Content
Pages
Categories
Search
Top
Bottom

Load external file as avatar


  • GRAQ
    Participant

    @graq

    Is there a way to load a file from an external site (cURL?) and assign that as a member’s avatar? There must be other ways to do than just manually via the avatar edit form page?

Viewing 2 replies - 1 through 2 (of 2 total)

  • GRAQ
    Participant

    @graq

    The files are not loaded into the media library, but stored in wp-content/uploads/avatars/USER_ID/-
    I can do that. Is there a way I can make BP create the various sizes?


    GRAQ
    Participant

    @graq

    Super, so I’m now pulling it in with imagecreatefromjpeg(‘http://…’); and saving it with imagejpeg().
    Anyway to auto crop to get the images into a nice square shape?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load external file as avatar’ is closed to new replies.
Skip to toolbar