Browse our Products

Aspose.Imaging for JAVA 24.10 - Release notes

Competitive features:

  • Support AVIF file format
  • Implement SVG vector effect “non-scaling-stroke”
KeySummaryCategory
IMAGINGJAVA-8816Support AVIF file formatFeature
IMAGINGJAVA-8815Implement SVG vector effect “non-scaling-stroke”Feature
IMAGINGJAVA-8824Can’t convert EPS to PNGEnhancement
IMAGINGJAVA-8814Conversion of Dicom to PDF fails in evaluation modeEnhancement
IMAGINGJAVA-8813DNG from MemoryStream is recognized as TIFFEnhancement
IMAGINGJAVA-8811Invalid CDR export: render has incorrect colorsEnhancement
IMAGINGJAVA-8805Fix RasterImage.Filter using specified rectEnhancement

Public API changes:

Added APIs:

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

Removed APIs:

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

Usage Examples:

IMAGINGJAVA-8824 Can’t convert EPS to PNG

try (Image img = Image.load("c03f002.eps"))
{
	PngOptions options = new PngOptions();
	options.setVectorRasterizationOptions(new EpsRasterizationOptions()
		{{
			setPageWidth(img.getWidth());
			setPageHeight(img.getHeight());
		}});
	img.save("result.png", options);
}

IMAGINGJAVA-8816 Support AVIF file format

### Example
The sample AVIF image is exported into a PNG image format.

String inputFilePath = "kodim23_yuv420_8bpc.avif";
String outputFilePath = "kodim23_yuv420_8bpc.avif.png";
try (AvifImage image = (AvifImage)Image.load(inputFilePath))
{
	image.save(outputFilePath);
}

IMAGINGJAVA-8815 Implement SVG vector effect “non-scaling-stroke”

String inputPath = "input.svg";
try (Image image = Image.load(inputPath))
{
	image.save(inputPath + ".png");
}

IMAGINGJAVA-8814 Conversion of Dicom to PDF fails in evaluation mode

String inputPath = "input.dcm";
try (Image image = Image.load(inputPath))
{
	image.save(inputPath + ".pdf");
}

IMAGINGJAVA-8813 DNG from MemoryStream is recognized as TIFF

String inputPath = "input.dng";
try (FileInputStream fileStream = new FileInputStream(inputPath))
{
	try (ByteArrayInputStream memoryStream = new ByteArrayInputStream(Files.readAllBytes(Paths.get(inputPath))))
	{
		long format = Image.getFileFormat(fileStream);

		long formatOfMemoryStream = Image.getFileFormat(memoryStream);

		if (format == FileFormat.Dng && formatOfMemoryStream == FileFormat.Dng)
		{
			System.out.print("DNG is recognized.");
		}
		else
		{
			throw new AssertionError("DNG is recognized as TIFF");
		}
	}
}

IMAGINGJAVA-8811 Invalid CDR export: render has incorrect colors

try (Image image = Image.load("UNIFILL.CDR"))
{
    TiffOptions options = new TiffOptions(TiffExpectedFormat.TiffLzwCmyk);
    image.save("UNIFILL.CDR.tiff", options);
}

IMAGINGJAVA-8805 Fix RasterImage.Filter using specified rect

String inputPath = "input.png";
try (RasterImage image = (RasterImage) Image.load(inputPath))
{
	Rectangle clip = image.getBounds();
	clip.inflate(-clip.getWidth() / 4, -clip.getHeight() / 4);
	image.filter(clip, new GaussianBlurFilterOptions());

	image.save(inputPath + ".png");
}