webcamcapture + photoupload (like Facebook) for PHP

白昼怎懂夜的黑 提交于 2019-12-11 04:23:54

问题


On my PHP-based (Joomla!) site users should be able to provide a photo of themselfes and provide some comments to it (e.g. Name). This file along with the comment should then be stored on the server. The user should simply be able to do this either by uploading a file or by taking a picture with their webcam directly on my site. I like the way Facebook has solved the user interface for that. Is there a free (or cheap) component (I suppose it needs to be done with flash?) that I can intergrate into my PHP site?


回答1:


I don't know if there are any free and useful webcam applets out there. I ended up writing my own. Getting an image from a webcam is not really hard in flash. I then use PNGEncoder (com.adobe.images.PNGEncoder) from adobe itself to convert the bitmap data into a PNG images (by default flash does bitmaps only and those are way to big to upload). I end up with an URLLoader to post it to my site.

I got some wisdom from this url: http://marstonstudio.com/?p=36




回答2:


  • jpegcam
  • webcamsnapper

similar question Flash Photo Uploader - Take photo from web cam



来源:https://stackoverflow.com/questions/3359736/webcamcapture-photoupload-like-facebook-for-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!