Browse our Products

Aspose.Imaging for .NET 24.3 - Release notes

Competitive features:

Updated base classes and options descriptions with user-friendly texts

KeySummaryCategory
IMAGINGNET-6735Aspose.Imaging 23.9: Converting a tiff with different horizontal and vertical resolutions to PDF produces a stretched resultEnhancement
IMAGINGNET-6702Unauthorized access exceptionEnhancement

Public API changes:

Added APIs:

Class Aspose.Imaging.ProcessingType

Field/Enum Aspose.Imaging.DataStreamSupporter.timeout

Field/Enum Aspose.Imaging.ProcessingType.Default

Field/Enum Aspose.Imaging.ProcessingType.Interlaced8

Field/Enum Aspose.Imaging.StreamContainer.startPosition

Method Aspose.Imaging.FileFormats.OpenDocument.OdImage.ReleaseManagedResources

Removed APIs:

Field/Enum Aspose.Imaging.DataStreamSupporter.Timeout

Field/Enum Aspose.Imaging.StreamContainer.StartPosition

Usage Examples:

IMAGINGNET-6735 Aspose.Imaging 23.9: Converting a tiff with different horizontal and vertical resolutions to PDF produces a stretched result

var inputPath = @"6735.tif";
var outputPath = inputPath + ".pdf";
using (var image = Image.Load(inputPath) as RasterImage)
{
    image.Save(outputPath, new PdfOptions
    {
        PageSize = new SizeF(image.Width, image.Height),
        ResolutionSettings = new ResolutionSetting(image.HorizontalResolution, image.VerticalResolution),
    });
}

IMAGINGNET-6702 Unauthorized access exception

// Code below does not throw UnauthorizedAccessException on loading a read-only image file
using var image = Image.Load(@"read-only-png.png");