LazZiya.ImageResize
4.1.4
dotnet add package LazZiya.ImageResize --version 4.1.4
NuGet\Install-Package LazZiya.ImageResize -Version 4.1.4
<PackageReference Include="LazZiya.ImageResize" Version="4.1.4" />
<PackageVersion Include="LazZiya.ImageResize" Version="4.1.4" />
<PackageReference Include="LazZiya.ImageResize" />
paket add LazZiya.ImageResize --version 4.1.4
#r "nuget: LazZiya.ImageResize, 4.1.4"
#:package LazZiya.ImageResize@4.1.4
#addin nuget:?package=LazZiya.ImageResize&version=4.1.4
#tool nuget:?package=LazZiya.ImageResize&version=4.1.4
LazZiya.ImageResize
Read full docs at: docs.ziya.info.tr
What is it?
Image resizing tool for .Net applications to resize images and add text/image watermark, Supports most common image types including animated images as gif.
Contents
- Install
- Basic Usage
- Image Resizing Methods
- Image Watermark
- Text Watermark
- Image Frame
- Image Mask
- Rotate Flip Image
- Animated Images
- Animated Text Watermark
- Animated Image Watermark
- Conditional Methods
Install :
Install via nuget package manager:
Install-Package LazZiya.ImageResize
Basic Usage
using System.Drawing;
using LazZiya.ImageResize;
using(var img = Image.FromFile("wwwroot/images/image-file.jpg"))
{
img.ScaleByWidth(600)
.AddTextWatermark("https://docs.ziya.info.tr")
.SaveAs("wwwroot/images/resized-image.jpg");
}
Supported OS
LazZiya.ImageResize depends on System.Drawing.Common, so OS compatibility with the latter may affect the project compatibility.
- Windows: all .net versions.
- Linux: all .net versions prior to .net6 (see breaking change announcement)
Notice for Linux Users
This package depends on System.Drawing.Common which is a cross platform GDI+ graphic processing package, and in order for it to work on linux/ubuntu systems install below libraries:
sudo apt install libc6-dev
sudo apt install libgdiplus
Live demos (not covering v4.0 yet):
Disclaimer :
Parts of the animated gif support depends on a customized version of the code provided by gOODiDEA.NET in CodeProject.com.
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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. |
-
.NETStandard 2.0
- System.Drawing.Common (>= 5.0.3)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on LazZiya.ImageResize:
| Package | Downloads |
|---|---|
|
OpenXMLSDK.Engine
This package contains the 'Open-XML-SDK' plugin for MvvmCross. |
|
|
HT.Image
Resize, crop, add text watermark to Images: var file = await model.Scale(width, height,true); // model is IFormFile file.SaveAs("wwwroot/" + pathFile); |
|
|
HT.SQLServer.File
Resize, crop, add text watermark to Images: var file = await model.Scale(width, height,true); // model is IFormFile file.SaveAs("wwwroot/" + pathFile); |
|
|
TestBin
test file manager - just for test |
|
|
SaClass
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.4 | 127,467 | 1/29/2023 |
| 4.1.3 | 2,436 | 1/8/2023 |
| 4.1.1 | 12,761 | 10/28/2022 |
| 4.1.0 | 123,814 | 8/2/2021 |
| 4.0.0 | 13,791 | 6/11/2021 |
| 4.0.0-preview4 | 1,377 | 3/11/2021 |
| 4.0.0-preview3 | 865 | 3/9/2021 |
| 4.0.0-preview2 | 901 | 2/22/2021 |
| 4.0.0-preview1 | 1,583 | 2/10/2021 |
| 3.0.2 | 45,939 | 6/8/2020 |
| 3.0.1 | 4,323 | 4/26/2020 |
| 3.0.0 | 35,789 | 12/18/2019 |
| 3.0.0-preview2 | 1,155 | 12/15/2019 |
| 3.0.0-preview1 | 1,411 | 12/8/2019 |
| 2.0.0 | 9,876 | 2/28/2019 |
| 1.0.0 | 1,500 | 2/17/2019 |
Fixed:
- Allow frame thickness of 0, so background fill can be applied. https://github.com/LazZiya/ImageResize/issues/17org#preview-your-readme
- See all details in the docs https://docs.ziyad.info/