简体   繁体   English

Java Tapestry Web应用程序中的基本图像编辑器(打开文件,裁剪,保存到新文件)

[英]Basic image editor (open file, crop, save to new file) in a Java Tapestry web application

I am researching the best way to implement a basic online image editor for a Java Tapestry web application. 我正在研究为Java Tapestry Web应用程序实现基本的在线图像编辑器的最佳方法。 The functions I am looking for are: 我正在寻找的功能是:

1) Open a user-supplied file 1)打开用户提供的文件

2) Offer an editing window with functionality to crop the image, or add colour-filled shapes to obscure parts of the image 2)提供一个具有裁剪图像功能的编辑窗口,或添加色彩填充的形状以遮盖图像的某些部分

3) Save out the edited or unedited result with a new file name to a location on the server. 3)用新文件名将已编辑或未编辑的结果保存到服务器上的某个位置。

I would prefer a front-end that doesn't provide a heavy client-side load, and one with either minimal editing options or the ability to turn off unnecessary features. 我希望前端不提供沉重的客户端负载,并且前端要么具有最少的编辑选项,要么具有关闭不必要功能的能力。 I would also prefer that it be possible to get it work on mobile devices, so Flash is not really a viable option. 我还希望它可以在移动设备上运行,因此Flash并不是一个切实可行的选择。

Does anyone have experience or advice to offer for ImageMagick, the JH Image Processing libraries ( http://www.jhlabs.com/ip/filters/index.html ) or other options? 是否有人对ImageMagick,JH图像处理库( http://www.jhlabs.com/ip/filters/index.html )或其他选项有经验或建议?

The Catalano Framework is a framework for scientific computing for Java and Android. Catalano框架是用于Java和Android的科学计算的框架。

Example: 例:

FastBitmap fb = new FastBitmap(bufferedImage);

// Sepia effect.
Sepia sepia = new Sepia();
sepia.applyInPlace(fb);

// Crop
int startX = 10;
int startY = 10;
int newWidth = 100;
int newHeight = 100;

Crop crop = new Crop(startX, startY, newWidth, newHeight);
crop.applyInPlace(fb);

...and much more. ...以及更多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM