SigmaConverter 0.0.2

This plugin provides programmatic access to image/file converter.

Install-Package SigmaConverter -Version 0.0.2
dotnet add package SigmaConverter --version 0.0.2
<PackageReference Include="SigmaConverter" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SigmaConverter --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SigmaConverter, 0.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.2

// Install SigmaConverter as a Cake Tool
#tool nuget:?package=SigmaConverter&version=0.0.2
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

Version 0.0.2

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.

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

Version 0.0.2

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.

Release Notes

Image conversion (image, iformfile and base64 string).

Dependencies

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.

Version History

Version Downloads Last updated
0.0.2 62 2/17/2021
0.0.1 38 2/16/2021