Browse our Products

Aspose.Imaging for .NET 23.5 - Release notes

Competitive features:

  • Support of tiled Tiff writing
  • Add NET7 configuration to Aspose.Imaging
KeySummaryCategory
IMAGINGNET-5986Support of tiled Tiff writingFeature
IMAGINGNET-6191WMF: Incorrect orientation of wmf renderingEnhancement
IMAGINGNET-6181SVG to PDF: Arrows not rendered correctlyEnhancement
IMAGINGNET-6102Support of TIFF with Cmyk Alpha color modeEnhancement
IMAGINGNET-6101wk: Converting PNG to TIFF using CMYK colorspace and preserving transparencyEnhancement
IMAGINGNET-5802Cannot convert the CDR image to JPGEnhancement
IMAGINGNET-4605“Bit depth of 8 bits are supported for RGBA images.” exception when rendering PNG file to PNGEnhancement
IMAGINGNET-4600Resizing operation is incorrect for GIF animationEnhancement

Public API changes:

Added APIs:

Class Aspose.Imaging.Masking.IMaskingAsyncTask

Field/Enum Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffDeflateCmyk

Field/Enum Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffDeflateCmyka

Field/Enum Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffLzwCmyka

Field/Enum Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffNoCompressionCmyk

Field/Enum Aspose.Imaging.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffNoCompressionCmyka

Method Aspose.Imaging.CmykColorHelper.ToCmykaBytes(System.Int32[],System.Int32,System.Int32)

Method Aspose.Imaging.CmykColorHelper.ToCmykaIccBytes (System.Int32[],System.Int32,System.Int32,System.IO.Stream,System.IO.Stream)

Method Aspose.Imaging.FileFormats.Tiff.FileManagement.TiffStreamWriter.Write (System.IO.MemoryStream)

ethod Aspose.Imaging.ImageOptions.IcoOptions.#ctor

Method Aspose.Imaging.ImageOptions.TiffOptions.RemoveTags (Aspose.Imaging.FileFormats.Tiff.Enums.TiffTags[])

Method Aspose.Imaging.Masking.IMaskingAsyncTask.GetError

Method Aspose.Imaging.Masking.IMaskingAsyncTask.GetMaskingResult

Removed APIs:

Usage Examples:

IMAGINGNET-6191 WMF: Incorrect orientation of wmf rendering

using var image = Image.Load("input.wmf");
var pngOptions = new PngOptions
{
    VectorRasterizationOptions = new WmfRasterizationOptions
    {
        BackgroundColor = Color.Transparent,
        PageWidth = image.Width,
        PageHeight = image.Height

    }
};
image.Save("output.png", pngOptions);

IMAGINGNET-6181 SVG to PDF: Arrows not rendered correctly

cpp
 using (var svgStream = new MemoryStream(File.ReadAllBytes("D:\\J1C.svg")))
 using (var pdfStream = new MemoryStream())
 {
     using (var image = Aspose.Imaging.Image.Load(svgStream))
     {
         var pdfOptions = new Aspose.Imaging.ImageOptions.PdfOptions();
         image.Save(pdfStream, pdfOptions);
         File.WriteAllBytes("D:\\J1C.pdf", pdfStream.ToArray());
     }
 }

using (var svgStream = new MemoryStream(File.ReadAllBytes("D:\\J11A.svg")))
using (var pdfStream = new MemoryStream())
{
    using (var image = Aspose.Imaging.Image.Load(svgStream))
    {
        var pdfOptions = new Aspose.Imaging.ImageOptions.PdfOptions();
        image.Save(pdfStream, pdfOptions);
        File.WriteAllBytes("D:\\J11A.pdf", pdfStream.ToArray());
    }
}

IMAGINGNET-6102 Support of TIFF with Cmyk Alpha color mode

using var png = Image.Load(input.png);
png.Save(output.tiff, new TiffOptions(TiffExpectedFormat.TiffLzwCmyka));

IMAGINGNET-6101 wk: Converting PNG to TIFF using CMYK colorspace and preserving transparency

using var png = Image.Load(input.png);
png.Save(output.tiff, new TiffOptions(TiffExpectedFormat.TiffLzwCmyka));

IMAGINGNET-5986 Support of tiled Tiff writing

using var image = Image.Load("tiled-tiff.tiff") as TiffImage;

var page = image.Pages[0] as TiffFrame;
if (page.FrameOptions.IsTiled)
{
    Console.WriteLine("Tiff is tiled");
}

image.Save("output-tiled.tiff");

IMAGINGNET-5802 Cannot convert the CDR image to JPG

using (var image = Image.Load("Desain Backdrop HUT RI 77 CDR - TUTORiduan.cdr"))
{
image.Save("output.jpeg", new JpegOptions());
}

IMAGINGNET-4605 “Bit depth of 8 bits are supported for RGBA images.” exception when rendering PNG file to PNG

using (RasterImage image = (RasterImage)Image.Load("image0.png"))
{
    ImageOptionsBase options = image.GetOriginalOptions();
    image.Save("result.png", options);
}

IMAGINGNET-4600 Resizing operation is incorrect for GIF animation

List<ResizeType> resizeTypes = new List<ResizeType>()
                                    {
                                        ResizeType.NearestNeighbourResample,
                                        ResizeType.AdaptiveResample,
                                        ResizeType.Bell,
                                        ResizeType.BilinearResample,
                                        ResizeType.CatmullRom,
                                        ResizeType.CubicBSpline,
                                        ResizeType.CubicConvolution,
                                        ResizeType.HighQualityResample,
                                        ResizeType.LanczosResample
                                    };

foreach (ResizeType resizeType in resizeTypes)
{
    using (GifImage image = (GifImage)Image.Load("test.gif"))
    {
        image.BackgroundColor = Color.Transparent;
        image.ResizeFullFrame(200, 200, resizeType);
        image.Save("test.gif" + "_" + resizeType.ToString() + ".gif");
    }
}