Jeylabs.ImageHandler
1.0.0
dotnet add package Jeylabs.ImageHandler --version 1.0.0
NuGet\Install-Package Jeylabs.ImageHandler -Version 1.0.0
<PackageReference Include="Jeylabs.ImageHandler" Version="1.0.0" />
paket add Jeylabs.ImageHandler --version 1.0.0
#r "nuget: Jeylabs.ImageHandler, 1.0.0"
// Install Jeylabs.ImageHandler as a Cake Addin #addin nuget:?package=Jeylabs.ImageHandler&version=1.0.0 // Install Jeylabs.ImageHandler as a Cake Tool #tool nuget:?package=Jeylabs.ImageHandler&version=1.0.0
Jeylabs.ImageHandler (.Net Framework)
This package handles the Images by ImageFormat conflicts, Image Encode Decode by Base64, Convert Image formats.
Target
The package targets .Net Framework 4.0
or latest. you can install and use the package Jeylabs.Comparer
on projects which are based on .Net Framework
Usage
To start using reusable_timeline you can install it using nuget
If you are using "Nuget Package Manager Console" use the following command to install it
Install-Package Jeylabs.ImageHandler -Version 1.0.0
If you are using ".NET CLI" use the following command to install it
dotnet add package Jeylabs.ImageHandler --version 1.0.0
If you are using "Nuget Package Manager (GUI)" follow the steps which following gif showing.
You must use the Jeylabs.ImageHandler
namespace from the Jeylabs.ImageHandler
package
using Jeylabs.ImageHandler;
Your Can refer the following Example:
.
using Jeylabs.ImageHandler;
using System.Drawing;
using System.Drawing.Imaging;
namespace ImageHandlerDemo
{
class Program
{
static void Main(string[] args)
{
Image sourceImage = Image.FromFile(@"D:\\sourceFolder\SourceImage.jpg"); // Get Image from Local path
// Convert Images
//The Following example converts the file as png Image by parsing Params (OrginalImage, destination file name, Save Image format)
ImageHandler.ConvertAndSaveAs(sourceImage, @"D:\\destinationFolder\DestyinationImage.png", ImageFormat.Png);
//The Following example converts the file as png Image by parsing Params (sorce file name, destination file name, Save Image format)
ImageHandler.ConvertAndSaveAs(@"D:\\sourceFolder\SourceImage.jpg", @"D:\\destinationFolder\DestyinationImage.png", ImageFormat.Png);
// Encode Image
//Encode the Image as Base 64
string b64ImageData = ImageHandler.ToBase64String(sourceImage);
//Encode the Image as Base 64
b64ImageData = ImageHandler.ToBase64String(@"D:\\sourceFolder\SourceImage.jpg");
// Decode Image
//Get Image by decode the Image Data
Image outputImage = ImageHandler.Base64StringToImage("Base64_Image_Data_As_String");
// Save the Image file by decode the Image Data
bool isSaved = ImageHandler.Base64ToImageFile("Base64_Image_Data_As_String", @"D:\\destinationFolder\DestyinationImage.png", ImageFormat.Png);
}
}
}
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.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 673 | 9/27/2019 |
Initial Release