Aspose.Imaging for Java 22.10 - Release notes

Competitive features:

  • Support of 16-bit/Channel 64 bit PNG images
Key Summary Category
IMAGINGJAVA-8250 Support of 16-bit/Channel 64 bit PNG images Feature
IMAGINGJAVA-8256 “Unknown character - " exception when open ODG file Enhancement
IMAGINGJAVA-8248 PSD exporter saves CMYK colors as RGB Enhancement
IMAGINGJAVA-8245 DNG to JPG changes image color Enhancement
IMAGINGJAVA-8240 Exception while load the particular tiff Enhancement
IMAGINGJAVA-8236 Exception on conversion Gif and Dicom images to Bmp Enhancement
IMAGINGJAVA-8235 Cannot export particular SVG image Enhancement

Public API changes:

Added APIs:

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

Removed APIs:

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

Usage Examples:

IMAGINGJAVA-8256 “Unknown character - " exception when open ODG file

try (Image image = Image.load("input.odg"))
{
    image.save("output.png", new PngOptions());
}

IMAGINGJAVA-8250 Support of 16-bit/Channel 64 bit PNG images

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

IMAGINGJAVA-8248 PSD exporter saves CMYK colors as RGB

try (JpegImage image = (JpegImage) Image.load("cat.jpg"))
{
    image.save(
        "output_CMYK_8.psd",
        new PsdOptions()
        {{
            setColorMode(ColorModes.Cmyk);
        }});
}

IMAGINGJAVA-8245 DNG to JPG changes image color

try (Image image = Image.load("input.dng", new DngLoadOptions() {{ setAdjustWhiteBalance(true); }}))
{
    image.save("input.dng.jpg", new JpegOptions());
}

IMAGINGJAVA-8240 Exception while load the particular tiff

try (Image image = Image.load("input.tif"))
{
   image.save("output.png", new PngOptions());
}

IMAGINGJAVA-8236 Exception on conversion Gif and Dicom images to Bmp

Raster image to BMP of 16 bits per pixel and Bitfields compression:

String[] inputs = { "gif.gif", "dicom.dicom" };

for (String inputPath : inputs) 
{
    try (Image image = Image.load(inputPath))
    {
        image.save(inputPath + ".bmp", new BmpOptions {{ setBitsPerPixel(16); }});
    }
}

IMAGINGJAVA-8235 Cannot export particular SVG image

try (Image image = Image.load("logo.svg"))
{
    image.save("logo-to-png.png", new PngOptions());
}