问题描述
我在寻找一个基于网络的上传管理器,并且对图片有良好的支持。新手用户应该尽可能容易地向网站添加图像。我可以使用这样的事情的两个用例:
I'm looking for a web based upload manager, with good support for images. It should be as easy as possible for novice users to "add images to a website". I could use such a thing for two use cases:
- 外部使用的CMS需要适当的图像支持
- 一个Wiki供内部使用,要受欢迎它将需要能够轻松地放入截图,而不必烦恼保存截图到文件 - 上传文件 - 复杂
理想情况下,我要查找的内容会显示上传图片的图库,并允许用户添加/删除/替换图像。
Ideally, the thing I'm looking for shows galleries of uploaded images and allows the user to add/remove/replace images.
我知道可能有很多服务器端PHP脚本可以在弹出窗口或AJAX中执行这样的操作,所有缺乏的是在复制/粘贴支持。特别是对于内部支持网站,printscreen + paste将是一个理想的解决方案,但我无法找到支持这个的包。
I know there are probably a lot of server-side PHP scripts that can do things like this, in a pop-up window, or with AJAX, but where they're all lacking is in copy/paste support. Especially for the internal support site, a printscreen + paste would be an ideal solution, but I'm unable to find a package that supports this.
我猜这个应该可以使用Flash;除非没有办法将图像数据粘贴到Flash文件中。我不知道很多。我可能自己开发的东西,但我真的不想学习Flash,我没有$$支付Flash开发工具。
I'm guessing this should be possible using Flash; unless there's no way to paste image data into a Flash file. I don't know much about that though. I could probably develop something myself, but I really don't want to have to learn Flash, and I don't have the $$ to pay for the Flash development tools.
那么告诉我,是否甚至可以将位图数据复制/粘贴到Flash电影中?
So tell me, is it even possible to copy/paste bitmap data into a Flash movie? And has someone perhaps already written an elegant image/upload manager that makes use of it?
推荐答案
这里有一个纯JavaScript的例子在Chrome浏览器中支持打印屏幕/ Ctrl + V粘贴的实施:
Here's an example of a pure JavaScript implementation that supports Print Screen / Ctrl+V pasting in Google Chrome: http://strd6.com/2011/09/html5-javascript-pasting-image-data-in-chrome/
一旦你有在客户端的图像数据,你可以做任何你想要的。
Once you have the image data on the client side you can do whatever you want with it.
这篇关于网站图像管理器与复制/粘贴? (闪?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!