webcamcapture + photoupload(如Facebook)的PHP [英] webcamcapture + photoupload (like Facebook) for PHP

查看:157
本文介绍了webcamcapture + photoupload(如Facebook)的PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的基于PHP(Joomla!)的网站上,用户应该能够提供他们自己的照片并提供一些评论(例如Name)。这个文件和注释一起存储在服务器上。用户应该能够通过上传文件或直接在我的网站上使用网络摄像头拍摄照片。我喜欢Facebook解决用户界面的方式。有没有一个免费(或便宜)的组件(我想它需要用闪存?),我可以整合到我的PHP网站?

解决方案

我不知道是否有任何免费和有用的网络摄像头的小程序。我结束了写我自己的。从网络摄像头获取图像并不是真的很难。然后,我使用adobe本身的PNGEncoder(com.adobe.images.PNGEncoder)将位图数据转换成PNG图像(默认情况下,flash只有位图,而且这些图像是上传的大图)。我最终使用URLLoader将其发布到我的网站。

我从这个网址获得了一些智慧: http: //marstonstudio.com/?p=36


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?

解决方案

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

这篇关于webcamcapture + photoupload(如Facebook)的PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆