离线高级图像编辑
我正在 ASP.NET 中构建一个应用程序,它将存储一些对象的图片。图片将由供应商上传并由订阅者下载。在此期间,它们必须经过编辑才能提供给订阅者。
编辑涉及紧密围绕图片中的对象创建裁剪路径,我想其中必须使用一些高级桌面图像软件。
我的问题是如何以对用户来说简单且透明的方式在 ASP.NET 应用程序和桌面软件之间交换图片。
我做了一些思考并得出了以下结论: - 手动下载和上传图像(不太用户友好......) - 一个可以上传到网络服务的图像编辑程序(还没有找到......) - 为图像编辑程序开发一个插件(太高级了...)
我很感激您的任何建议,谢谢!
I'm building an app in ASP.NET that will store some pictures of objects. The pictures will be uploaded by suppliers and downloaded by subscribers. In between, they will have to be edited before becoming available to subscribers.
The editing involves creating a cropping path tightly around the object in the picture, in which some advanced desktop image software will have to be used I suppose.
My problem is in exchanging pictures between my ASP.NET app and the desktop software in a manner that is easy and transparent for the user.
I've done some thinking and I've come up with:
- Manually downloading and uploading the image (Not much user friendly...)
- An image editing program that can upload to a web service (Haven't found yet...)
- Develop a plug-in for an image editing program (Too advanced...)
I'd appreciate any suggestions you may have, thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您需要一些自动化来在 Web 服务器和文件共享之间移动文件。我假设需要处理的图像数量非常大,因为如果不是,那么下载/重新上传每个图像的开销就不会那么多。
因此,请执行以下操作:
1) 为您的 Web 应用程序创建一个 API,其中列出可用的文件、自某个日期/时间以来的新文件或已标记为“新”的文件。如果您不想信任日期/时间作为它是新的。
2) 编写一个按计划运行的应用程序(非 Web),并使用此 API 自动将文件下载到本地网络中的共享文件系统区域,并将它们标记为“已下载”
该应用程序还应该监视这些文件(它已下载并保存到您的本地共享)以进行更改,如果发生更改,请将其上传回您的网络应用程序。为此,您可能需要保留文件名和修改日期/时间的数据库。
无论您在网络上使用什么语言(假设是 c# 或 vb),编写此代码都应该不会太难。我所说的“API”只是指一个提供标准化格式(例如json)列表的网页,您可以使用自动化应用程序对其进行解析,另一个页面允许将文件发回以重新上传。
我假设网络服务器不是您自己的,或者一般来说,您不能简单地让它将文件上传直接保存到图像编辑器可以访问它们的某个区域。否则你就可以这样做。
It sounds like you need some automation to move files between the web server and a file share. I am assuming that the number of images that need to be processed is pretty large, because if it's not, then the overhead of downloading/re-uploading each would not be that much.
So do the following:
1) Create an API for your web app that lists files that are available, or new files since some date/time, or files that have been marked as "new". The API should probably also allow marking a status on them (so you can tell it when you've finishing pulling something down, and it won't be offered again) if you don't want to trust date/time as an indicator of it being new.
2) Write an app (non-web) that runs on a schedule and uses this API to automatically download files to a shared filesystem area in your local network, and marks them as "downloaded"
The app should also monitor these files (the ones it downloaded & saved to your local share) for changes, and if changed, upload them back to your web app. To do this you may need to keep a database of filenames and modification dates/times.
This shouldn't be too hard to write in whatever language you are using for your web (assume c# or vb). By "API" I just mean, a web page that provides a list in a standardized format (e.g. json) that you can parse with your automation application, and another page that allows posting the file back for re-upload.
I'm assuming that the web server is not your own, or generally, you can't simply have it save the file uploads directly to some area where your image editors can access them. Otherwise you could just do that.
与此同时,我想出了另一种可能的解决方案。
我正在考虑在编辑的计算机上安装我们自己的 Windows 应用程序。该应用程序将与自定义扩展程序关联。当编辑器下载文件(带有此扩展名)进行编辑时,它将在我们的应用程序中打开,而应用程序又会在某些编辑器程序中打开图像。
该应用程序将监视文件的更改,在这种情况下,它将上传这些图像。
对此有什么想法吗?
Meanwhile I came out with another possible solution.
I'm thinking of having our own windows app on the editor's computers. This app will be associated with a custom extension. When an editor downloads a file (with this extension) for editing, it will be opened in our application which in turn will open the image in some editor program.
This app will be monitoring the files for changes, and in such case, it will upload these images.
Any thoughts on this?