Browse our Products

Aspose.Imaging for Java 23.5 - Release notes

Competitive features:

  • Support of TIFF with Cmyk Alpha color mode
  • Support of tiled Tiff writing
KeySummaryCategory
IMAGINGJAVA-8440Support of TIFF with Cmyk Alpha color modeFeature
IMAGINGJAVA-8427Support of tiled Tiff writingFeature
IMAGINGJAVA-8441wk: Converting PNG to TIFF using CMYK colorspace and preserving transparencyEnhancement
IMAGINGJAVA-8431SVG to PDF: Arrows not rendered correctlyEnhancement
IMAGINGJAVA-8426Cannot convert the CDR image to JPGEnhancement
IMAGINGJAVA-8395Resizing operation is incorrect for GIF animationEnhancement
IMAGINGJAVA-8394“Bit depth of 8 bits are supported for RGBA images.” exception when rendering PNG file to PNGEnhancement
IMAGINGJAVA-8373WMF: Incorrect orientation of wmf renderingEnhancement

Public API changes:

Added APIs:

Please see corresponding cumulative API changes for Aspose.Imaging for .NET 23.5 version

Removed APIs:

Please see corresponding cumulative API changes for Aspose.Imaging for .NET 23.5 version

Usage Examples:

IMAGINGJAVA-8441 wk: Converting PNG to TIFF using CMYK colorspace and preserving transparency

try (Image png = Image.load("input.png"))
{
	png.save("output.tiff", new TiffOptions(TiffExpectedFormat.TiffLzwCmyka));
}

IMAGINGJAVA-8440 Support of TIFF with Cmyk Alpha color mode

try (Image png = Image.load("input.png"))
{
	png.save("output.tiff", new TiffOptions(TiffExpectedFormat.TiffLzwCmyka));
}

IMAGINGJAVA-8431 SVG to PDF: Arrows not rendered correctly

try (Image image = Image.load("J1C.svg"))
{
	image.save("J1C.pdf", new PdfOptions());
}

try (Image image = Image.load("J11A.svg"))
{
	image.save("J11A.pdf", new PdfOptions());
}

IMAGINGJAVA-8427 Support of tiled Tiff writing

try (TiffImage image = (TiffImage) Image.load("tiled-tiff.tiff"))
{
	TiffFrame page = (TiffFrame) image.getPages()[0];
	if (page.getFrameOptions().isTiled())
	{
		System.out.println("Tiff is tiled");
	}

	image.save("output-tiled.tiff");
}

IMAGINGJAVA-8426 Cannot convert the CDR image to JPG

try (Image image = Image.load("Desain Backdrop HUT RI 77 CDR - TUTORiduan.cdr"))
{
	image.save("output.jpeg", new JpegOptions());
}

IMAGINGJAVA-8395 Resizing operation is incorrect for GIF animation

List<Integer> resizeTypes = Arrays.asList(
	ResizeType.NearestNeighbourResample,
	ResizeType.AdaptiveResample,
	ResizeType.Bell,
	ResizeType.BilinearResample,
	ResizeType.CatmullRom,
	ResizeType.CubicBSpline,
	ResizeType.CubicConvolution,
	ResizeType.HighQualityResample,
	ResizeType.LanczosResample
);

for (Integer resizeType : resizeTypes)
{
	try (GifImage image = (GifImage) Image.load("test.gif"))
	{
		image.setBackgroundColor(Color.getTransparent());
		image.resizeFullFrame(200, 200, resizeType);
		image.save("test.gif" + "_" +
				ResizeType.getName(ResizeType.class, resizeType) + ".gif");
	}
}

IMAGINGJAVA-8394 “Bit depth of 8 bits are supported for RGBA images.” exception when rendering PNG file to PNG

try (RasterImage image = (RasterImage) Image.load("image0.png"))
{
    ImageOptionsBase options = image.getOriginalOptions();
    image.save("result.png", options);
}

IMAGINGJAVA-8373 WMF: Incorrect orientation of wmf rendering

try (Image image = Image.load("input.wmf"))
{
	PngOptions pngOptions = new PngOptions();
	WmfRasterizationOptions wmf_opt = new WmfRasterizationOptions();
	wmf_opt.setBackgroundColor(Color.getTransparent());
	wmf_opt.setPageHeight(image.getHeight());
	wmf_opt.setPageWidth(image.getWidth());
	pngOptions.setVectorRasterizationOptions(wmf_opt);
	image.save("output.png", pngOptions);
}