My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for

Features  
Features of Thumbnailator
Featured
Updated Dec 31, 2010

Features

  • Create high-quality thumbnails from existing images.

Thumbnailator
Graphics.drawImage
  • Option to embed a watermark (such as a logo) in the thumbnails.
  • Transparency of the watermark is adjustable from transparent (0%) to opaque (100%).
  • Supports rotation of thumbnail.
  • A fluent interface to simplify the process of making thumbnails programmatically.
For example, the code in the previous example for rotating thumbnails was written as follows:

for (int i : new int[] {0, 90, 180, 270, 45}) {
    Thumbnails.of(new File("coobird.png"))
            .size(100, 100)
            .rotate(i)
            .toFile(new File("image-rotated-" + i + ".png"));
}
  • Multiple quality modes for thumbnail generation.
  • Preserves the aspect ratio of resulting thumbnail, if desired.

Sign in to add a comment
Powered by Google Project Hosting