Blocks: Webcam Snapshot

Maintained by MFreakLuuk Verhoeven
This block allows users to make profile picture with there webcam.
242 sites
31 fans
Current versions available: 2

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 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 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


  • Picture of David Mudrák
    Fri, Feb 27, 2015, 9:40 PM
    Hi Luuk. Thanks for sharing this block. It provides quite cool feature! I was able to successfully test the functionality. The block is implemented in line with Moodle development guidelines. It's good to see you pay attention to security and access control when updating the user picture.
    There are some small and easy to fix issues I spotted while reviewing the code.
    * You do not seem to take $CFG->disableuserimages into account. The block should not change the user image if that flag is set (I admit the admin should not install the block in that case, but still).
    * Also, you should check for the moodle/user:editownprofile capability before updating the image.
    * The more "moodley" way would probably be to implement your upload.php file as AJAX_SCRIPT (grep for this constant), although I admit I do not know ActionScript enough to judge pros and cons of it in your situation.
    * When trying to access your bug tracker, I am getting "Access denied" error (I would report these issues there otherwise).
    * I am unable to find more information about the license of the com.hurlant.util package you use in your block. The notices in the source code refer to LICENSE.txt file that is not included. Is there a way to check and make sure that the package's license is compatible with GNU GPL v3 ?
    I think that your solution might eventually turn into a more robust snapshoting tool in moodle that would save the files into user's private area files. But I really this block doing one thing, and doing it well.

    I am going to mark this as needing more work for now to get the raised issues fixed. Thanks for your patience with the review and approval process.
  • MFreak
    Sat, Feb 28, 2015, 3:19 AM

    - More validation if the user is allowed to replace there avatar
    - Change uploader to more moodley way
    - Change VCS to public, was still private sorry about that
    - Remove hurlant from the source and add another that is allowed to add to

    Hope this enough to be approved, adding to there private files would be nice for the next version. Also have some more ideas for that.

  • Picture of David Mudrák
    Mon, Mar 2, 2015, 5:11 PM
    Thanks Luuk. Trying to access your Bug tracker still throws me "Access denied" error. There must be some setting for that as I was able to use others' bitbucket issue trackers. Thanks for the other fixes, they all look good to me. You just seem to have a typo in the 'failed:permission_editownprofile' string (see commit cfb6176) where I think "User ... there ..." should read "Users ... their ...".
  • Picture of David Mudrák
    Mon, Mar 2, 2015, 5:12 PM
    This can be approved once the bug tracker permissions are fixed.
  • Picture of David Mudrák
    Mon, Mar 2, 2015, 6:16 PM
    Thanks for fixing things promptly Luuk. This has been approved and is available to the public now. You can wait for the confirmation from the community to see if it works in lower Moodle versions for them. Good luck the the maintenance and further development of this. Over.
  • Picture of Jesse H
    Mon, Mar 2, 2015, 7:31 PM
    I cant quite get this working. I've installed it, but it isnt clear how i access it, I cant see any webcam block and clicking edit profile functions as usual?
    Any help is much appreciated smile
  • MFreak
    Mon, Mar 2, 2015, 8:17 PM
    I added a installation video to the description above. Hope this will help.
  • Matt Bury
    Fri, Mar 6, 2015, 8:34 AM
    Using a LAMP stack on localhost server. Installed via Moodle repo successfully. MoodleFreak Avatar shows up in moodle/admin/blocks.php block module list. However, when I click on "settings", i.e. moodle/admin/block.php?block=43, I get a 404 not found error. Also, it doesn't show up in "Add a block" drop-down list.

    Have I missed something?
  • Matt Bury
    Fri, Mar 6, 2015, 8:59 AM
    Forgot to mention, using Moodle 2.8. And thanks for your hard work and for contributing this module! smile
  • MFreak
    Fri, Mar 6, 2015, 5:07 PM

    There are no settings needed for this block.
    Also in your version you can only add the block to http://yourmoodle/my [My moodle page].

    New version can be download above.
    - invalid setting link remove
    - block can added to more pages then my home only
  • MFreak
    Sat, Apr 18, 2015, 6:29 AM
    New release 2015-04-18 added Webrtc Support, this allows most browsers to make snapshot without flash!!
  • Picture of Simon Bertoli
    Tue, Apr 21, 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, Apr 21, 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, Apr 21, 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, Apr 21, 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.
Please login to post comments