SigmaConverter 0.0.1
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SigmaConverter --version 0.0.1
NuGet\Install-Package SigmaConverter -Version 0.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SigmaConverter" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SigmaConverter --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SigmaConverter, 0.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SigmaConverter as a Cake Addin #addin nuget:?package=SigmaConverter&version=0.0.1 // Install SigmaConverter as a Cake Tool #tool nuget:?package=SigmaConverter&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Summary
File Converter Plugin under active development. Functionality and documentation my change without notice.
This plugin provides programmatic access to file conversion and resize. It will help you convert IFormFile into System.Drawing.Image & Base64 String. You will be able to resize the file with its provided extension and in the data type that you want (currently - IFormFile, Image and Base64String).
Target Framework: .Net Standard 2.1, .Net Core 3.1 and .Net 5
SigmaConverter
Converting File
Image File Converter
Converts file data type and resize file.
namespace: Sigma.Converter
Methods
IsValidImage()
:
- Extension method for IFormFile
- Checks whether the file is image type or not
- Returns true or false
- Eg;
iformFileObj.IsValidImage();
ToImage()
:
- Extension method for IFormFile
- Converts IFormFile into System.Drawing.Image type
- Returns Image or throws exception is IFormFIle is not image type
- Eg;
var image = iformFileObj.ToImage();
ToFormFile(string name, string name = "filename", string extension = ".png")
:
- Extension method to base64string (string).
- Converts base64 string into image file.
- Returns IFormFile or throws exception is not image.
- Arguments name and extension are optional.
- Eg;
var iformFile = base64String.ToFormFile();
- Extensions are also available for conversion into Image, base64 and IFormFile.
ResizeToImage(ImageSizes size)
:
- Extension method for IFormFile, Image and base64.
- ImageSizes is Enum Namespace is Sigma.Converter.Enumerations .
- Returns Resized Image
- Eg;
var image = iformFileObj.ResizeToImage(ImageSizes.x32);
var image = image.ResizeToImage(ImageSizes.x64);
var image = base64String.ResizeToImage(ImageSizes.x128);
- ResizeToBase64(ImageSizes size) is also available where you can resize and convert from IFormFile, Image and base64 String.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.1 is compatible. netstandard3.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Image conversion (image, iformfile and base64 string).