No release in over 3 years
AsposeImagingJava is a Ruby gem that helps developers create, edit, draw or convert images using Aspose.Imaging for Java libraries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
>= 0

Runtime

~> 1.5.2
 Project Readme

GitHub all releases GitHub

Java API for Image Processing

Imaging API is a library offering advanced image processing features. Developers can create, edit or convert images in their own application. Also Aspose. Imaging library supports drawing and work with graphic primitives. Image export and conversion (including uniform multi-page image processing) is the one of API core features along with image transformations (resize, crop, flip&rotate, binarization, grayscale, adjust), advanced image manipulation features (filtering, dithering, masking, deskewing) and memory optimization strategies.

Directory Description
Examples A collection of Java examples that help you learn the product features.
Plugins Plugins that will demonstrate one or more features of Aspose.Imaging for Java.

Directory Description
Examples A collection of Java examples that help you learn the product features.
Plugins Plugins related to Aspose.Imaging for Java product.

Imaging API Features

Load & Save Image Formats

Raster Formats: JPEG2000, JPEG, BMP, TIFF, GIF, PNG, DICOM, TGA, ICO
Metafiles: EMF, WMF
Compressed metafiles: EMZ, WMZ
Other: WebP, Svg, Svgz (compressed Svg)
Animation: Apng

Save Images As

Fixed-layout: PDF
Photoshop: PSD
Web: Html5 Canvas
AutoCAD: Dxf

Load Images

Various: DjVu, DNG, ODG, EPS, CMX, CDR, DIB, OTG, FODG

Platform Independence

Aspose.Imaging for Java can be virtually run in any OS where Java is installed (since JDK 1.6)

  • Windows (since 7)
  • Linux
  • MacOS
  • Any OS where Java is installed.

Aspose.Imaging works for both x86 and x64 versions of the above listed operating systems.

Note: In Linux OS, it is recommended to install the package with Microsoft compatible fonts (e.g. sudo apt-get install ttf-mscorefonts-installer).

Get Started with Aspose.Imaging for Java

Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.BarCode for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Imaging for Java from Maven Repository documentation page.

Resize a JPG Image

try (Image image = Image.load(dir + "template.jpg"))
{
    image.resize(300, 300);
    image.save(dir + "output.jpg");
}

Create & Manipulate PNG via API

// image width and height
int width = 500;
int height = 300;

// where created image to store
String path = "createdImage.png";
// create options
try (PngOptions options = new PngOptions())
{
	options.setSource(new FileCreateSource(path, false));
	try (PngImage image = (PngImage)Image.create(options, width, height))
	{          
		// create and initialize an instance of Graphics class 
		// and Clear Graphics surface
		Graphics graphic = new Graphics(image);
		graphic.clear(Color.getGreen());
		// draw line on image
		graphic.drawLine(new Pen(Color.getBlue()), 9, 9, 90, 90);        

		// resize image
		int newWidth = 400;
		image.resizeWidthProportionally(newWidth, ResizeType.LanczosResample);  

		// crop the image to specified area
		com.aspose.imaging.Rectangle area = new com.aspose.imaging.Rectangle(10,10,200,200);    
		image.crop(area);
	   
		image.save();
	}
}

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License