T4Image 2.0.0-preview.1
This is a prerelease version of T4Image.
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 T4Image --version 2.0.0-preview.1
NuGet\Install-Package T4Image -Version 2.0.0-preview.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="T4Image" Version="2.0.0-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add T4Image --version 2.0.0-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: T4Image, 2.0.0-preview.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 T4Image as a Cake Addin
#addin nuget:?package=T4Image&version=2.0.0-preview.1&prerelease
// Install T4Image as a Cake Tool
#tool nuget:?package=T4Image&version=2.0.0-preview.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.QRCode barcode = new T4Image.QRCode(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 | Versions 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.
-
.NETStandard 2.0
- SkiaSharp (>= 1.68.1.1)
- System.Drawing.Common (>= 4.7.0)
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 | 848 | 8/2/2020 | |
2.0.0-preview.2 | 257 | 7/27/2020 | |
2.0.0-preview.1 | 256 | 7/20/2020 | |
1.1.0 | 445 | 3/27/2020 | |
1.1.0-preview.3 | 261 | 3/19/2020 | |
1.1.0-preview.2 | 255 | 3/12/2020 | |
1.1.0-preview.1 | 248 | 3/10/2020 | |
1.0.5 | 408 | 3/9/2020 | |
1.0.4 | 456 | 3/5/2020 | |
1.0.3 | 423 | 3/3/2020 | |
1.0.2 | 433 | 2/27/2020 | |
1.0.1 | 527 | 2/27/2020 | |
1.0.0 | 570 | 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