T4Image 2.0.0

dotnet add package T4Image --version 2.0.0
NuGet\Install-Package T4Image -Version 2.0.0
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="T4Image" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add T4Image --version 2.0.0
#r "nuget: T4Image, 2.0.0"
#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 T4Image as a Cake Addin
#addin nuget:?package=T4Image&version=2.0.0

// Install T4Image as a Cake Tool
#tool nuget:?package=T4Image&version=2.0.0

Video demo: https://www.youtube.com/watch?v=QHQsBKkcvoE

T4 Image: Compress, Resize, Create QR Code, Barcode,...

T4 Image is library compress images on the .net platform. Has been added 2 function NEW: BarCode and QRCode

T4 Image use core SkiaSharp.

  • Upgrade image compression algorithm compared to older versions. For more optimal compression results.
  • Support image compression with the quality selected in the range (from-to), instead of fixing a value like the old version.
  • Support compression level (Quality, Balance and Storage):
    • Quality: High file size, quality and speed
    • Balance: Normal file size, quality and speed
    • Storage: Low file size, quality and speed

T4Image.QRCode: T4Image.QRCode qrcode = new T4Image.QRCode(TextInput, EECLevel);

T4Image.IInput readImg = qrcode.Export();

T4Image.BarCode: T4Image.BarCode barcode = new T4Image.BarCode(BarcodeStandard.TYPE, TextInput, Show/HideLabel);

T4Image.IInput readImg = barcode.Export();

T4Image.IInput: T4Image.IInput readImg = new T4Image.Input(fileImage)

  • Input image with: Url, Uri, File, String Base64, Bytes.
  • Details:
    • Url: readImg.Url()
    • Uri format data:[media type][;base64],data (EX: data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA): readImg.Url()
    • File: readImg.File()
    • String Base64: readImg.Base64()
    • Bytes: readImg.Bytes(byte[] bytesInput)
    • FromImage: readImg.FromImage(Image img)
    • ImageFile: Type Image after read
    • StreamFile: Type Stream after read
    • FileName: File name after read
    • FileExtension: File extension after read (default png)

T4Image.IOutput (Option): T4Image.IOutput writeImg = new T4Image.Output(T4Image.Output.LevelOptimal.Storage, (100), "/_t4", "", "")

  • Output image with: Quality, Level Optimal, FolderExport, FileName, FileExtension
  • Details:
    • Level Optimal: Priority level optimal (Quality, Balance, Storage).
    • Quality: (int, int) ⇒ (From, To). Default (25, 80).
    • FolderExport: Default (string.Empty) get folder import.
    • FileName: Rename file export. Default (string.Empty) is get default
    • FileExtension: Change extension. Default (string.Empty) is get default

T4Image.IResize (Option): new T4Image.Resize(readImg.ImageFile, 800, 900, T4Image.Resize.Priority.Auto);

  • Resize image with: Image, Width, Height, Priority
  • Details:
    • Image: Type Image from T4Image.IInput
    • Width: Resize Width
    • Height: Resize Height
    • Priority: ++ None: Not priority, set width, height width resize. ++ Auto: Auto Width or Height priority (size image width > height ⇒ Width, else Height) ++ Width: Lock Width, change Height ++ Height: Lock Height, change Width

T4Image.Optimizer: T4Image.Optimizer op = new T4Image.Optimizer(readImg, writeImg, resizeImg)

  • Process compress image with ExportMemoryStream, ExportFile or ExportImage
  • Details:
    • IInput: T4Image.IInput
    • IOutput: T4Image.IOutput
    • IResize (Option): T4Image.IResize
    • ExportStream: Export result type Stream
    • ExportImage: Export result type Image
    • ExportFile: Export result file with folder from T4Image.IOutput
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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.

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
2.0.0 840 8/2/2020
2.0.0-preview.2 256 7/27/2020
2.0.0-preview.1 254 7/20/2020
1.1.0 443 3/27/2020
1.1.0-preview.3 260 3/19/2020
1.1.0-preview.2 254 3/12/2020
1.1.0-preview.1 247 3/10/2020
1.0.5 407 3/9/2020
1.0.4 455 3/5/2020
1.0.3 422 3/3/2020
1.0.2 432 2/27/2020
1.0.1 526 2/27/2020
1.0.0 569 2/26/2020

T4 Image: Compress, Resize, Create QR Code, Barcode,...
1. Improve the features of the old version
2. Add function QRCode and BarCode
3. Add param type Barcode: T4Image.BarCode barcode = new T4Image.BarCode(BarcodeStandard.TYPE, TextInput, Show/HideLabel).
4. Add parameter width and height for Barcode
5. Update SkiaSharp