在线读取EXIF,无需上传照片
我有一个 HTML5 网站。我想做以下事情:
- 遍历文件夹中的文件
- 查找所有图像
- 从图像中获取 exif 文件
- 分析 exif(在服务器上)
- 纠正错误的 exif
这是最好的方案。我意识到第一步和第二步可能只能通过用户选择此文件来完成。只有当分析在用户机器上完成时,第五步才可能。那么最好的方法是什么(尽可能接近最佳场景)?我应该使用什么而不需要强迫用户安装任何东西?
编辑: 至少我使用免费的 GeckoFX 网络浏览器作为基本的桌面应用程序。界面是用 HTML+JS 创建的,谢谢大家
I have an HTML5 site. I want to do following thing:
- Walk through files in a folder
- Find all images
- Get exif file from images
- Analyze an exifs (on server)
- Correct bad exifs
This is a best scenario, that it can be. I am conscious that 1st and 2second step is possibly done only by selecting this files by user. And 5th step is possible only when the analysis will be done at user's machine. So what is the best way to do it (to get closer as much to the optimal scenario)? What should I use without need to force a user to install anything?
EDIT:
At least I have used free GeckoFX web browser as a basic desktop app. Interface is created in HTML+JS Thx all
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要创建一个在用户计算机上运行的应用程序。您无法创建执行此操作的 HTML5 网站。
You would need to create an application that runs on the computer of the user. You can't create an HTML5 site that does this.
Chrome HTML5 网络应用程序应该能够做到这一点。
这些天我实际上正在看这个。
这是一个不起作用的示例(我认为是由于旧的 API 规范)
http://benno.id.au/blog/2009/12 /30/html5-fileapi-jpegmeta
但至少应该给出一些很好的见解。
A Chrome HTML5 webapp should be able to do this.
I'm actually looking at this in these days.
Here is a NOT WORKING example ( due to old API specs, I think)
http://benno.id.au/blog/2009/12/30/html5-fileapi-jpegmeta
But should at least give some good insights.
您应该使用 ExifTool。
它可以作为 Perl 库在此处提供:
http://www.sno.phy.queensu.ca/~ phil/exiftool/ExifTool.html
也作为可以由服务器(同一站点)运行的命令行工具。
You should use ExifTool.
It is available as a Perl library here:
http://www.sno.phy.queensu.ca/~phil/exiftool/ExifTool.html
And also as a command-line tool which can be ran by the server (same site).