Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackkoolage/image4iosdk
a .Net wrapper library for Image4.io API
https://github.com/jackkoolage/image4iosdk
api cdn csharp csharp-library dotnet dotnet-core dotnet-framework dotnet-standard framework free hosting image sdk sharing upload vb vb-net vbnet visual-basic
Last synced: about 1 month ago
JSON representation
a .Net wrapper library for Image4.io API
- Host: GitHub
- URL: https://github.com/jackkoolage/image4iosdk
- Owner: jackkoolage
- Created: 2020-03-04T03:12:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:16:12.000Z (about 2 years ago)
- Last Synced: 2024-12-14T00:15:29.377Z (about 1 month ago)
- Topics: api, cdn, csharp, csharp-library, dotnet, dotnet-core, dotnet-framework, dotnet-standard, framework, free, hosting, image, sdk, sharing, upload, vb, vb-net, vbnet, visual-basic
- Language: C#
- Homepage:
- Size: 479 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Image4ioSDK
`Download:`[https://github.com/jackkoolage/Image4ioSDK/releases](https://github.com/jackkoolage/Image4ioSDK/releases)
`Help:`[https://github.com/jackkoolage/Image4ioSDK/wiki](https://github.com/jackkoolage/Image4ioSDK/wiki)
`NuGet:`
[![NuGet](https://img.shields.io/nuget/v/DeQmaTech.Image4ioSDK.svg?style=flat-square&logo=nuget)](https://www.nuget.org/packages/DeQmaTech.Image4ioSDK)# Features:
* Assemblies for .NET 4.5.2 and .NET Standard 2.0 and .NET Core 2.1
* Just one external reference (Newtonsoft.Json)
* Easy installation using NuGet
* Upload/Download tracking support
* Proxy Support
* Upload/Download cancellation support# List of functions:
**Management**
> * ImageMetadata
> * ImageCopy
> * ImageMove
> * ImageDelete
> * FolderDelete
> * FolderCreate
> * FolderList
> * Upload
> * UploadMultiable
> * UploadRemotely**Transformation**
> * ToWebP
> * Resize
> * Compress# CodeMap:
![codemap](https://i.postimg.cc/FK1nJndz/io-codemap.png)# Code simple:
```vb
Dim Clint As Image4ioSDK.IClient = New Image4ioSDK.OClient("cloud_name", "api_key", "api_secret", New Image4ioSDK.ConnectionSettings With {.CloseConnection = True, .TimeOut = TimeSpan.FromMinutes(80), .Proxy = New Image4ioSDK.ProxyConfig With {.SetProxy = True, .ProxyIP = "127.0.0.1", .ProxyPort = 80, .ProxyUsername = "user", .ProxyPassword = "123456"}})Await Clint.FolderCreate("folder_name", "folder_path")
Await Clint.FolderDelete("folder_name")
Await Clint.FolderList("folder_path")
Await Clint.ImageCopy("image_path", "folder_path")
Await Clint.ImageDelete("image_path")
Await Clint.ImageMetadata("image_path")
Await Clint.ImageMove("image_path", "folder_path")Dim CancelToken As New Threading.CancellationTokenSource()
Dim _ReportCls As New Progress(Of Image4ioSDK.ReportStatus)(Sub(r) Console.WriteLine($"{r.BytesTransferred}/{r.TotalBytes}" + r.ProgressPercentage + If(r.TextStatus, "Downloading...")))
Await Clint.Upload("C:\Down\mypic.jpg", Image4ioSDK.Utilitiez.UploadTypes.FilePath, "folder_path", "mypic.jpg", True, False, _ReportCls, CancelToken.Token)
Dim multiFiles = New List(Of Image4ioSDK.OClient.MultiableUpload)
multiFiles.Add(New Image4ioSDK.OClient.MultiableUpload With {.FileToUpload = "C:\Down\mypic1.jpg", .FileName = "mypic1.jpg"})
multiFiles.Add(New Image4ioSDK.OClient.MultiableUpload With {.FileToUpload = "C:\Down\mypic2.jpg", .FileName = "mypic2.jpg"})
Await Clint.UploadMultiable(multiFiles, Image4ioSDK.Utilitiez.UploadTypes.FilePath, "folder_path", True, False, _ReportCls, CancelToken.Token)
Await Clint.UploadRemotely("https://domain.com/mypic.jpg", "folder_path")
Await Clint.Download("image_path", "C:\Down", "mypic.jpg", _ReportCls, CancelToken.Token)'' Transformation
Dim meta = Await Clint.ImageMetadata("tzt/40d78f11-2b11-4169-aa73-b953573666cd.jpg")
Clint.Transformation(meta).Compress(75)
Clint.Transformation(meta).Resize(75, 800, 600)
Clint.Transformation(meta).ToWebP(75, 800, 600)
```