Browse our Products

Aspose.Imaging for JAVA 25.6 - Release notes

Competitive features:

  • PNG CompressionLevel is not used when saving image
KeySummaryCategory
IMAGINGJAVA-8965PNG CompressionLevel is not used when saving imageFeature
IMAGINGJAVA-8972NullReferenceException: During conversion CMX in PNG and any vector image formatEnhancement
IMAGINGJAVA-8971Cannot convert the ICO image to JPG formatEnhancement
IMAGINGJAVA-8970Cannot open the CMX imageEnhancement
IMAGINGJAVA-8155Cannot convert DCM to PNGEnhancement

Public API changes:

Added APIs:

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

Removed APIs:

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

Usage Examples:

IMAGINGJAVA-8972 NullReferenceException: During conversion CMX in PNG and any vector image format

try (Image cmxImage = Image.load("complex_example.cmx"))
{
   cmxImage.save("complex_example.cmx.png", new PngOptions());
   cmxImage.save("complex_example.cmx.emf", new EmfOptions()); // NO Exception here
}

IMAGINGJAVA-8971 Cannot convert the ICO image to JPG format

String inputPath = "input.ico";
String outputPath = inputPath + ".jpg";
try (Image image = Image.load(inputPath))
{
    image.save(outputPath);
}

IMAGINGJAVA-8970 Cannot open the CMX image

try (Image image = Image.load("Masjid,_Madarsa_Donation,_Raseed_Book-[1].cmx"))
{
    image.save("result.png", new PngOptions() 
				{{ 
					setVectorRasterizationOptions(new CmxRasterizationOptions()
						{{
							setPositioning(PositioningTypes.Relative);
						}}
				}});
}

IMAGINGJAVA-8965 PNG CompressionLevel is not used when saving image

The following code creates 11 png files that are differently compressed.

try (Image image = Image.load("input.png"))
{
	for (int compression = 0; compression <= 10; compression++)
	{
		String outputFile = String.format("compressionTest%d.png", compression);

		image.save(outputFile, new PngOptions()
		{{
			setPngCompressionLevel(compression);
		}});
	}
}

IMAGINGJAVA-8155 Cannot convert DCM to PNG

License lic = new License();
lic.setLicense(""); // reset license to evaluation
try (Image image = Image.load("IMG00001.dcm")) 
{
    image.save("file-png.png", new PngOptions());
}