SWT vs AWT in graphics file process performance?

Should server-side processing use AWT or SWT?

I think AWT may be too abstract from the actual bits of image data, so I think SWT may be a little faster.

Or do you propose another open source process library? (BSD or Apache License)

The server is running Ubuntu 11.04.

Requirements:

  • Read / write image from / to stream instead of files.
  • The image type is specified as a parameter, and not guessed from the extension. (This is not necessary if it can determine the type of image from the header bytes.)
  • Support JPG, PNG, GIF.
  • (Bonus) Support for Animated GIFs.

Use cases:

  • Create thumbnails.
  • Add some banner text.
  • Add a watermark and proof of verification.
+3
2

SWT . JDK- ImageIO Java2D, . : Java- SWT -, .

+2

SWT , .

Swing , Swing ImageIO : , , , .

Java, , - JAI, , , . JAI , Swing , :

     RenderedImage renderedImage = JAI.create("fileload", imageFile.getAbsolutePath());
     RenderedImageAdapter planarImage = new RenderedImageAdapter(renderedImage);
     BufferedImage image planarImage.getAsBufferedImage();

JAI ( JPG , Photoshop). , ImageMagick, . Java, API , JNI , . .

+2

All Articles