Blocks: Webcam Snapshot

Maintained by MoodleFreak Luuk Verhoeven
This block allows users to make profile picture with there webcam.
214 sites
25 fans

Webcam Snapshot

It's a brand new functionality for users in their own Moodle environment. The plugin is free to download and in open source.

In brief, the MoodleFreak Plugin Avatar gives the user the possibility to take a snapshot with a live webcam. The user can then upload the picture and modify his profile picture at any time.
Besides this, there is also the facility to customize texts within the plugin.

As a bonus, an easy to follow tutorial was created, on how the user can install the block to his Moodle site and ultimately deploy it to a page for use.


  • The Plugin makes no database changes.
  • The Plugin was developed with coding standards of Moodle.



Automatic avatar 

Fix capabilities

If your students or some other role can't create a avatar. 

Extra Information:




Screenshot #0
Screenshot #1
Screenshot #2


Luuk Verhoeven (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Simon Bertoli
    Tue, 21 Apr 2015, 7:55 AM
    HI Luuk

    Thanks for the great block, 2 things

    1 - On iPhone and iPad it shows the 'Install Flash' icon.
    2 - The main page of taking a snapshot does not look like the screenshots above.. all I get is a box to show the camera and when we click save snapshot it adds a smaller box of the snapshot with saved across it.
  • Frankie's the name, Moodle's my game!
    Tue, 21 Apr 2015, 11:12 AM
    Hi Luuk
    I am facing the same issue (#2) of the large box and smaller box as Simon Bertoli. And my snapshot, after saving as the image inside the smaller box, doesn't show up in the block.
  • Frankie's the name, Moodle's my game!
    Tue, 21 Apr 2015, 11:12 AM
    Hi Luuk - I am using my laptop's default webcam. Not a Logitech addon hardware.
  • Frankie's the name, Moodle's my game!
    Tue, 21 Apr 2015, 2:06 PM
    Hi Luuk. Haha. It's working now. If I don't change the default settings, then the screen looks the same as your screenshots.
  • MoodleFreak
    Tue, 21 Apr 2015, 3:07 PM
    In the last update, I added a HTML5 support WEBRTC to get a userstream this is indeed optional and will look a little bit different. You can turn it of and on in the block settings.

    @simon: If you know how I can let it work on IOS would be create, they don't support WebRTC. And even think there is no browser based solution for only from a app this should be possible.
  • Picture of Elton LaClare
    Fri, 17 Jul 2015, 4:06 PM
    Will Webcam Snapshot work on Moodle 2.9? I would really like to use it.
  • MoodleFreak
    Fri, 17 Jul 2015, 8:34 PM
    Hi Elton, will test it this weekend. I think it still works fine.
  • MoodleFreak
    Sun, 19 Jul 2015, 5:59 PM
    Also tested with success on version 2.9.1
  • Picture of Sergio Cardillo
    Wed, 3 Aug 2016, 6:05 PM
    Hi! Can you tell me the directory where the picture are saved and how to change it? Thank you!
  • MoodleFreak
    Thu, 4 Aug 2016, 2:15 AM
    @sergio This is done by default moodle behavior, using user profile image. The uploaded file will be added to moodledata folder and stored in the DB in the *files* table.
  • Picture of Aditya Dubay
    Thu, 6 Oct 2016, 1:55 PM
    Block is not visible to student sad
    Block permission are:

    Block: MoodleFreak Avatar
    Add a avatar snapshot tool
    block/mfavatar:addinstance - Inherit (Allow)

    block/mfavatar:view - Inherit (Allow)

    Edit a block's settings
    moodle/block:edit - Inherit (Not set)

    View block
    moodle/block:view - Inherit (Allow)
  • MoodleFreak
    Fri, 7 Oct 2016, 12:43 AM
    @AdityaDubay Did you add the block to the My Moodle page? The capabilities looks correct.
  • Picture of Roland Sherwood
    Mon, 11 Jun 2018, 10:57 AM
    Hi. Thanks for making this plugin available. If possible, please could you provide more details of the automatic first and last name initials avatar creation (as shown in the third image above) functionality? After having installed the plugin I can't find any way to activate or make use of this functionality. Thanks.
  • MoodleFreak
    Mon, 11 Jun 2018, 4:29 PM
    @Roland Sherwood I added a video to description of plugin. I hope this helps.
  • Picture of Roland Sherwood
    Wed, 13 Jun 2018, 12:20 PM
    Hi Luuk. That's great - many thanks! I understand now, and apologies also because my confusion was caused by the fact that I thought the download link at the top of this page was for the latest 3.5-compatible version of the plugin. However, that link is actually for the 1.1 release, and I realise now it's the 1.2 release that offers this functionality (hence my confusion after installing 1.1 and not seeing any settings related to automatic avatars). Everything works great now (although we do have an issue with non-latin character-based names producing avatars with no visible text; however that's probably beyond the scope of what you had in mind for this plugin)!
1 2
Please login to post comments