Aspose.Imaging.Image-Resize
24.3.0
dotnet tool install --global Aspose.Imaging.Image-Resize --version 24.3.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Aspose.Imaging.Image-Resize --version 24.3.0
#tool dotnet:?package=Aspose.Imaging.Image-Resize&version=24.3.0
nuke :add-package Aspose.Imaging.Image-Resize --version 24.3.0
Aspose.Imaging Micro Apps
Aspose.Imaging Micro Applications supply high-level image processing scenarios useful for end-users.
Work over Aspose.Imaging .NET API.
Aspose.Imaging Image Resize Micro Application
It allows resize of the input image to the desired size.
What's new?
Competitive features
Various input and output image formats are supported as per Aspose.Imaging supported file formats list;
Image size can be changed using relative resize factor or absolute image dimensions on resize.
Various resize algorithms are supported;
You may keep the aspect ratio on resize, preserving the proportions of the input image;
Aspose.Imaging Image resize micro application may be used via the command line or consumed by your C# code via.NET7 compatible API.
Licensing
Although Aspose.Imaging Image resize application is free, Aspose.Imaging .NET is licensed as usual, so you may reuse you reuse your license via application or evaluate the application using Aspose.Imaging .NET in trial mode.
System Requirements
-.NET7 on Windows, Linux, MacOs;
-Aspose.Imaging Image Resize application installed.
Installation
Please issue the command :
dotnet tool install --global Aspose.Imaging.Image-Resize
If you've already installed the application - update supported via the command :
dotnet tool update --global Aspose.Imaging.Image-Resize --version 24.3.0
Usage
Use from command line:
Aspose.Imaging.Image-Resize --input photo_1.jpg --output photo_with_increased_size.png --format png --resize_factor 150
Use from code: To add required references to your project please issue command
Aspose.Imaging.Image-Merge add -p YourProjectFolder
setting YourProjectFolder to the real value or simply run it from the project folder.
var options = new ImagingResizeOptions()
{
InputImage = "photo_1.jpg",
ToFormat = "png",
ResizeFactor = 150,
KeepAspectRatio = true,
OutputImagePath = "photo_with_increased_size.png"
};
// You may set path to your Aspose.Imaging .NET license file via parameters
if (isLicensed)
{
options.LicenseFile = "Aspose.Imaging.Product.Family.lic";
}
await ResizeTasks.Create(options).Execute();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.