在线图像编辑器 - Ajax 还是 Flex/Flash? [英] Online Image Editor - Ajax or Flex / Flash?

查看:27
本文介绍了在线图像编辑器 - Ajax 还是 Flex/Flash?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在计划构建一个仅具有一些基本功能的在线图像编辑器.它应该(显然)包含一个画布工作区并支持以下功能:
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

我想我最好的起点是获取一些开源图像编辑器,然后只使用我需要的代码部分.我的问题是什么对我更好:Flash/Flex 或基于 Javascript 的编辑器.每个都有一些非常好的在线实现,例如 Sumopaint、Aviary,显然还有用于 Flash 的 Photoshop.net 和用于 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,你能不能包括你喜欢的框架?

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??

谢谢!

推荐答案

Ajax 版本必须在服务器上使用一些东西来处理图像,比如 GD 库ImageMagick.使用 flash you/flex,您可以在客户端进行图像处理,使用 Flash Player 10,您可以利用 Pixel Bender 用于图像处理.我想这取决于您的图像的大小.我会很高兴看到一些大图像的基准测试,flash 与 ajax/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.

好问题.

这篇关于在线图像编辑器 - Ajax 还是 Flex/Flash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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