Webcam Snapshot

Blocks ::: block_mfavatar
Maintained by MFreakLuuk Verhoeven
This block allows users to make profile picture with their webcam.

Webcam Snapshot 3.10.0

Moodle 3.5, 3.6, 3.7, 3.8, 3.9, 3.10
Released: Wednesday, November 18, 2020, 8:05 PM

Moodle MFavatar Snapshot/Webcam tool for user profile picture

Briefly, the Mfreak 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 auto generate Avatars.


  • Author: Luuk Verhoeven,
  • Min. required: Moodle 3.5.x
  • Supports PHP: 7.2

Build Status Moodle35Moodle36Moodle37Moodle38Moodle39Moodle310PHP7.2

List of features

  • WebRTC, make snapshot with webcam.
  • Flash, make snapshot with webcam.
  • Feature for making automatically user avatars. Thanks to laravolt/avatar 06.07.2018-18.36.png


  • Convert ajax.php to native ajax webservices
  • Gravatar support
  • Convert module.js to an AMD module


  1. Copy this plugin to the block\mfavatar folder on the server
  2. Login as administrator
  3. Go to Site Administrator > Notification
  4. Install the plugin
  5. You will need to fill out the settings.


If you discover any security related issues, please email instead of using the issue tracker.


The GNU GENERAL PUBLIC LICENSE. Please see License File for more information.


Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.


  • 2020111800 Tested in Moodle310 fix issues, update composer to use the latest dependencies.
  • 2020050900 Default capability set to user, fix configuration difficulties.
  • 2020050900 Using WEBRTC as default, remove flash from this project.
  • 2018092600 Thanks for updating WEBRTC @eglescout
  • 2019051400 Thanks for solving issue in image override @matasarei

Version information

Version build number
Version release name
Stable version
MD5 Sum
Supported software
PHP 7.2, Moodle 3.5, Moodle 3.6, Moodle 3.7, PHP 7.3, PHP 7.4, Moodle 3.8, Moodle 3.9, Moodle 3.10
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10

Version control information

Version control system (VCS)
VCS repository URL
VCS tag

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.