在线图像编辑器 - 阿贾克斯或Flex / Flash的?在线、编辑器、图像、Flash

2023-09-11 00:34:01 作者:Brilliant(钻石)

我的工作计划,以建立一个在线图片编辑器,只是一些基本的功能。它应该(显然)包含一个帆布的工作区域,并支持以下功能: 1.从计算机上传图片或提交链接 2.调整图像大小(通过拖动拐角) 3.旋转和翻转 4.将/移动/平移 5.分层(如果有那么一个图像是在画布上,选择垂直排列) 6. ,并很重要的:它应该能够做到某种使用简单的边缘检测后台删除 我使用的图片都将是主要的时尚单品,所以我希望能够起飞的背景下,如果它不是白色的。例如自动让这个灰色的背景,白色: 点击图片 - 黑色T恤BG

I am working on a plan to build an online image editor with just some basic functions. It should (obviously) contain a canvas working area and support the following functions: 1. Upload an image from your computer or submit a link 2. Resize image (by dragging the corner) 3. Rotate and flip 4. Drag / move / pan 5. Layering (if more then one image is on the canvas, select vertical order) 6. And very important: it should be able to do some sort of background deletion using simple edge detection. Images I am using are going to be mostly of fashion items so I want to be able to take off the background if its not white. For example automatically make this gray background, white: Click for image - T-Shirt Black BG

我想我最好的出发点就是要抓住一些开放源代码的图像编辑器,只是使用的code我需要的部分。我的问题是什么将是更好地为我:闪光/ Flex或基于Javascript的编辑器。每个人都有一些非常好的实现在线,就像Sumopaint,鸟舍,显然Photoshop.net Flash和其他一些好的为JS。

I guess my best starting point is to grab some open source image editor and just use the parts of the code I need. My question is what will be better for me: Flash / Flex, or Javascript based editor. Each have some very nice implementations online, like Sumopaint, Aviary, and obviously Photoshop.net for Flash and some other good ones for JS.

我应该使用Flash或去一个基于Javascript的解决方案吗?我的直觉是对JS HTML5的到来指日可待。 此外,如果你推荐的Javascript,能否请您包括您的preferred框架这样的事情?

Should I use Flash or go with a Javascript based solution? My gut feeling is towards JS with HTML5 coming around the corner. Also if you recommend Javascript, can you please include your preferred framework for something like this??

谢谢!

推荐答案

阿贾克斯版本将不得不使用一些服务器上处理图像,像的 GD库或 ImageMagick的。使用闪光灯,你/弯曲你可以做在客户端图像处理,并使用Flash Player 10,你可以利用的 Pixel Bender的的图像处理。我想这取决于你的图像的大小。我很想看到一个基准上一些大的图片,Flash VS阿贾克斯/ PHP。

Ajax version would have to use something on the server processing the images, like the GD Library or ImageMagick. With flash you/flex you could do the image processing on the client side, and with Flash Player 10 you can take advantage of Pixel Bender for image processing. I guess it depends on the size of your images. I would be interesting to see a benchmark on some big images, flash vs ajax/php.

好问题。