Photobooth.js

I’ve been experimenting a lot with HTML 5 webcam support lately. One of the results – the audience on a galloping horse could be seen in my Next. Generation. Browser. Graphics. talk at Spa conference 2012.

Photobooth.js is a bit more useful: It’s a widget / jQuery plugin that allows the user to take pictures directly on your website. It also offers real-time adjustments for hue, saturation and brightness and the ability to crop the image.

Photobooth.js

Photobooth.js

Download, Demo and Docs can be found HERE.

33 responses on “Photobooth.js

  1. Congratulations man!!!….That’s awesome….definitely a very good resource that can’t be missed in our development tools….I learned that entry on hacker news a few days before I start a project with the web camera….thank you…..I will be following the project on github….

  2. Wow this is pretty cool! Is it possible to get this working on IE? And will you be able to get over the performance issues on Firefox? I can see the potential if you can sort these two issues. Well done! Love it!

  3. Pingback: Photobooth.js: HTML5-Webcam für die eigene Website - Dr. Web Magazin·

  4. Pingback: Add an HTML5 Webcam to Your Site With Photobooth.js | PJExploration·

  5. Pingback: Add an HTML5 Webcam to Your Site With Photobooth.js | Streaming Media Hosting·

  6. Pingback: Add an HTML5 Webcam to Your Site With Photobooth.js | Chicago Integrated Marketing Services·

  7. Pingback: Add an HTML5 Webcam to Your Site With Photobooth.js | Siriq Tech News·

  8. Pingback: Three amazing uses for dataURLs | Wolfram Hempel·

  9. Pingback: IT Digest: So.cl Beta Is Open to the Public, Gmail 2.0 on iOS, Skype Confirms Video Messaging Feature and Much More | Zfort Group Blog·

  10. Pingback: 基于HTML5实现的超酷摄像头(HTML5 webcam)拍照功能 – photobooth.js | 架构(architecture.riaos.com)·

  11. Pingback: 基于HTML5实现的超酷摄像头(HTML5 webcam)拍照功能 – photobooth.js | 前端web(web.riaos.com)·

  12. Pingback: Add an HTML5 Webcam to Your Site With Photobooth.js | BoonJack Media || We make Multimedia easy.·

  13. Pingback: 基于HTML5实现的超酷摄像头(HTML5 webcam)拍照功能 – photobooth.js « 工具猫 - 简单、快速的桌面小应用开发方案·

  14. So does this actually work for anyone? On the demo page, Firefox 17 takes an empty image. Chrome 23 seems like it might work, but it says I need to give the browser permission. In other WebRTC pages like Google’s, it asks, but in this case it never pops allow/deny. Any idea?

  15. It is a very good javascript work!!! Is it possible to set HSB parameters programmaticaly instead of using sliders? I would like hide sliders and propose buttons which set specific HSB values (sepia, B&W, …).

    Thanks!

    • Good suggestion, I’d be happy to add it in the next release. (Come to think of it, a takePicture() method and a hideControls() method might be nice too in order to use Photobooth without the default UI. ) Any other features or API additions you would like to see?)

      • If you are interested I have done functions to set HSB values. But I don’t undestood how you minimize your javascript. If you have an email, don’t hesitate to contact me, I will give you my code. To hide controls and takePicture, I use a display none css and use jquery to click on the trigger element.

  16. I send you (contact at wolframhempel.com) an email with my updates. Send me an email when you have done a new version.

    • I’m just wondering how you got the HSB to work. I’m not Wolfram.. Particularly, I just need to make the video B&W. Any thoughts?

    • Actually, I just figured this out. If anyone’s curious:
      _ = function (e) {
      return 2
      }

      Minified JS is super fun to work with :)

  17. My apologies for keeping you waiting. The photobooth instance has now six new methods. All setters take values between -0.5 and 0.5

    The methods are
    .getHueOffset()
    .setHueOffset( h )
    getBrightnessOffset()
    setBrightnessOffset(b)
    getSaturationOffset()
    setSaturationOffset(s)

    I’ll add them to the API documentation shortly

  18. Pingback: Cluster Tools·

  19. Pingback: Tools·

  20. Pingback: 基于HTML5实现的超酷摄像头(HTML5 webcam)拍照功能 – photobooth.js « dkankan·

  21. Is there anyway to hide the user overlay, and more importantly, how would I go about triggering the “take photo” without pressing it in JavaScript?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s