Jeylabs.ImageHandler 1.0.0

This package is handles the Images by ImageFormat conflicts, Image Encode Decode by Base64, Convert Image formats.

Install-Package Jeylabs.ImageHandler -Version 1.0.0
dotnet add package Jeylabs.ImageHandler --version 1.0.0
<PackageReference Include="Jeylabs.ImageHandler" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jeylabs.ImageHandler --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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);
        }
    }
}


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);
        }
    }
}


Release Notes

Initial Release

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 68 9/27/2019