Coder Social home page Coder Social logo

ost's Introduction

Ost

Take pictures with the camera/webcam. Say cheese!

  1. Take some pictures
  2. Re-arrange the pictures inside the black border
  3. Log in to Facebook
  4. Share the photo collage on Facebook

Demo: http://donkarlssonsan.github.io/Ost

Say cheese!

How it works

The video stream from the web cam is accessed with the getUserMedia JavaScript API. It is a new feature in HTML 5 and not implemented in all browsers yet. This is a good overview of current browser support: http://caniuse.com/#feat=stream

When taking still photos from the video stream, a hidden canvas is used to get a base64 encoded string representation of the photo which is then added to the DOM as a normal img element.

The rasterizeHTML library is used to generate an image of the collage when posting to Facebook.

For Facebook integration there are two parts:

  1. The Facebook JavaScript SDK is used for logging in.
  2. The low level HTTP-based Graph API is used for posting images.

TODO

ost's People

Contributors

donkarlssonsan avatar

Stargazers

 avatar Michael Anthony avatar  avatar

Watchers

 avatar James Cloos avatar Michael Anthony avatar  avatar

ost's Issues

not working anymore

Hi I found your project on Codepen (codepen.io/mahdan/pen/QOYbNo)
looks like it doesn't work anymore on a MacBook laptop with a modern browser.

Do you know if it is much work to upgrade? or may be recommend another project on github?

Thank you very much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.