Browse our Products
Aspose.Imaging for Java 26.3 - Release notes
Competitive features:
| Key | Summary | Category |
|---|---|---|
| IMAGINGJAVA-9165 | Implement Shadow Filter | Enhancement |
| IMAGINGJAVA-9156 | Setting ResolutionSetting in TiffOptions results in only Horizontal resolution update | Enhancement |
| IMAGINGJAVA-9155 | Add proper exception handling for unsupported XIF (eXtended Image Format, Xerox Image Format) file format | Enhancement |
| IMAGINGJAVA-9154 | JPG file colors are incorrectly read | Enhancement |
| IMAGINGJAVA-9166 | Regression: ImageExtensions.toJava(EmfImage) throws ArgumentException | Enhancement |
Public API changes:
Added APIs:
Please see corresponding cumulative API changes for Aspose.Imaging for .NET 26.3 version
Removed APIs:
Please see corresponding cumulative API changes for Aspose.Imaging for .NET 26.3 version
Usage Examples:
IMAGINGJAVA-9165 Implement Shadow Filter
try (Image image = Image.load("dropshadow.svg"))
{
image.save("dropshadow.png");
}IMAGINGJAVA-9156 Setting ResolutionSetting in TiffOptions results in only Horizontal resolution update
String inputFilePath = "input.tif";
String outputFilePath = "output.tif";
try (Image image = Image.load(inputFilePath))
{
TiffOptions exportOptions = (TiffOptions)image.getOriginalOptions();
// Set both horizontal and vertical resolution at once
exportOptions.setResolutionSettings(new ResolutionSetting(150, 150));
// At this point, both HorizontalResolution and VerticalResolution are 150
// exportOptions.getResolutionSettings().getHorizontalResolution() == 150
// exportOptions.getResolutionSettings().getVerticalResolution() == 150
image.save(outputFilePath, exportOptions);
}
try (TiffImage image = (TiffImage)Image.load(outputFilePath))
{
// At this point, the saved image has resolution values equal to 150
// image.getHorizontalResolution() == 150
// image.getVerticalResolution() == 150
}IMAGINGJAVA-9155 Add proper exception handling for unsupported XIF (eXtended Image Format, Xerox Image Format) file format
Example
Loading XIF images is not supported and will result in an ImageLoadException.
Assert.assertThrows(ImageLoadException.class, () -> Image.load("BET.PC.00155450.0.xif"));IMAGINGJAVA-9154 JPG file colors are incorrectly read
String inputPath = "input.jpg";
try (Image image = Image.load(inputPath))
{
image.save(inputPath + ".png");
}IMAGINGJAVA-9166 Regression: ImageExtensions.toJava(EmfImage) throws ArgumentException
try (EmfImage emfImage = (EmfImage) com.aspose.imaging.Image.load("test.emf"))
{
emfImage.cacheData();
BufferedImage java = ImageExtensions.toJava(emfImage);
System.out.println(java.getHeight());
}