Browse our Products

Aspose.Imaging for Java 21.9 - Release notes

Competitive features:

  • Implement support a “PANTONE goe coated” pallete in the CDR format
KeySummaryCategory
IMAGINGJAVA-7896Implement support a “PANTONE goe coated” pallete in the CDR formatFeature
IMAGINGJAVA-7911Blurred output GIF to PDFEnhancement
IMAGINGJAVA-7907Exception on converting WMZ to PNGEnhancement
IMAGINGJAVA-7906“Image loading failed.” exception when open document CDR fileEnhancement
IMAGINGJAVA-7903Fix bugs in the PowerClip objects rendering and implement support two-color raster imageEnhancement
IMAGINGJAVA-7902SVG to PNG, output image distortedEnhancement
IMAGINGJAVA-7898Aspose.Imaging 21.6: DICOM Image loading failedEnhancement
IMAGINGJAVA-7897Incorrect watermark when saving GIF frameEnhancement
IMAGINGJAVA-7895WebP Image Loads with incorrect colorEnhancement
IMAGINGJAVA-7894“Image export failed.” exception when rendering CDR to PNGEnhancement
IMAGINGJAVA-7892Fix default Tiff savingEnhancement

Public API changes:

Added APIs:

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

Removed APIs:

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

Usage Examples:

IMAGINGJAVA-7911 Blurred output GIF to PDF

String baseFolder = "D:\\";
String fileName = "Referral Elsa A_LI (1).gif";
String inputFileName = baseFolder + fileName;
String outFileName = inputFileName + ".pdf";
try (Image image = Image.load(inputFileName))
{
    image.save(outFileName, new PdfOptions());
}

IMAGINGJAVA-7907 Exception on converting WMZ to PNG

String fileName = "image001 (1).wmz";
String baseFolder = "D:\\";
String inputFileName = baseFolder + fileName;
String outputFileName = inputFileName + ".png";
try (Image image = Image.load(inputFileName))
{
    image.save(outputFileName, new PngOptions() {{ setColorType(PngColorType.TruecolorWithAlpha); }});
}

IMAGINGJAVA-7906 “Image loading failed.” exception when open document CDR file

String baseFolder = "D:\\";
String fileName = "SI-13.cdr";
String inputFilePath = baseFolder + fileName;
String outputFilePath = inputFilePath + ".png";
try (CdrImage image = (CdrImage) Image.load(inputFilePath))
{
    image.save(outputFilePath, new PngOptions());
}

IMAGINGJAVA-7903 Fix bugs in the PowerClip objects rendering and implement support two-color raster image

String baseFolder = "D:\\";
String[] files = new String[] { "Qurve.cdr", "Lakshaya School Brochures.cdr"};

final CdrRasterizationOptions cdrOptions = new CdrRasterizationOptions();
cdrOptions.setPositioning(PositioningTypes.Relative);

for (int i = 0; i < files.length; i++)
{
    String fileName = files[i];
    String inputFilePath = baseFolder + fileName;
    String outputFilePath = inputFilePath + ".png";
    try (CdrImage image = (CdrImage)Image.load(inputFilePath))
    {

        image.save(outputFilePath, new PngOptions()
        {{
             setVectorRasterizationOptions(cdrOptions);
        }});
     }
}

IMAGINGJAVA-7902 SVG to PNG, output image distorted

String baseFolder = "D:\\";
String[] fileNames = {"logo1.svg", "logo2.svg", "logo3.svg", "input.svg" };
for (String fileName : fileNames)
{
   String inputFileName = baseFolder + fileName;
   String outputFileName = inputFileName + "Fixed.png";
   try (com.aspose.imaging.Image image = com.aspose.imaging.Image.load(inputFileName))
   {
       image.save(outputFileName, new PngOptions());
   }
}

IMAGINGJAVA-7898 Aspose.Imaging 21.6: DICOM Image loading failed

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

IMAGINGJAVA-7897 Incorrect watermark when saving GIF frame

try (GifImage image = (GifImage)Image.load("2086.gif"))
{
    image.getPages()[0].save("Frame.png", new PngOptions());
}

IMAGINGJAVA-7896 Implement support a “PANTONE goe coated” pallete in the CDR format

String baseFolder = "D:\\";
String fileName = "test.cdr";
String inputFilePath = baseFolder + fileName;
String outputFilePath = inputFilePath + ".png";
try (CdrImage image = (CdrImage)Image.load(inputFilePath))
{
    CdrRasterizationOptions cdrOptions = new CdrRasterizationOptions();
    cdrOptions.setPositioning(PositioningTypes.Relative);

    image.Save(outputFilePath, new PngOptions()
    {{
        setVectorRasterizationOptions(cdrOptions);
    }});
}

IMAGINGJAVA-7895 WebP Image Loads with incorrect color

String fileName = "Control.webp";
String basePath = "D:\\";
String inputFilePath = basePath + fileName;
String outputFilePath = inputFilePath + ".png";
try (Image image = Image.load(inputFilePath))
{
     image.save(outputFilePath, new PngOptions());
}

IMAGINGJAVA-7894 “Image export failed.” exception when rendering CDR to PNG

String baseFolder = "D:\\cdr\\";
String fileName = "Áåçûìÿííûé-1.cdr";
String inputFilePath = baseFolder + fileName;
String outputFilePath = inputFilePath + ".png";
try (CdrImage image = (CdrImage) Image.load(inputFilePath))
{
    image.save(outputFilePath, new PngOptions());
}

IMAGINGJAVA-7892 Fix default Tiff saving

try (TiffImage source = (TiffImage)Image.load("image.tiff"))
{
	TiffOptions options = new TiffOptions(source.getActiveFrame().getFrameOptions());
	options.setDisableIccExport(true);
    source.save("output.tiff", options);
}