You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,5 +6,18 @@
6
6
Imageflow.NET is a .NET API for Imageflow, the image handling library for web servers. Imageflow focuses on security, quality, and performance - in that order.
Note: You must install the [appropriate NativeRuntime(s)](https://www.nuget.org/packages?q=Imageflow.NativeRuntime) in the project you are deploying - they have to copy imageflow.dll to the output folder.
18
+
19
+
[NativeRuntimes](https://www.nuget.org/packages?q=Imageflow.NativeRuntime) that are suffixed with -sandybridge (2011, AVX support) or -haswell (2013, AVX2 support) require a CPU of that generation or later.
20
+
21
+
9
22
*[Project source and issue site](https://github.com/imazen/imageflow-dotnet)
10
23
*[Stack Overflow tag](http://stackoverflow.com/questions/tagged/imageflow.net) - for specific "How do I do X?" questions
#pragma warning disable HeapAnalyzerExplicitNewObjectRule// Explicit new reference type allocation
2
+
usingSystem;
3
+
usingNewtonsoft.Json;
4
+
5
+
namespaceImageflow
6
+
{
7
+
/// <summary>
8
+
/// Common Exceptions
9
+
/// </summary>
10
+
internalstaticclassExceptions
11
+
{
12
+
/// <summary>
13
+
/// Parameter is not the correct.
14
+
/// </summary>
15
+
/// <typeparam name="TWantedType">The type of the wanted type.</typeparam>
16
+
/// <param name="nameOfParameter">The name of parameter.</param>
17
+
/// <returns>An <see cref="ArgumentException"/> with filled in message and parameter.</returns>
18
+
publicstaticArgumentExceptionParameterIsNotTheCorrectType<TWantedType>(stringnameOfParameter)=>newArgumentException($"{nameOfParameter} is not an {typeof(TWantedType).Name}.");
19
+
20
+
/// <summary>
21
+
/// No value for JSON property.
22
+
/// </summary>
23
+
/// <param name="propertyName">Name of the property.</param>
24
+
/// <returns>A <see cref="JsonException"/> with filled message.</returns>
25
+
publicstaticJsonExceptionNoValue(stringpropertyName)=>newJsonException($"No value for property {propertyName}.");
26
+
}
27
+
}
28
+
#pragma warning restore HeapAnalyzerExplicitNewObjectRule// Explicit new reference type allocation
<Description>Imageflow brings world-class image quality and performance to all languages through a C-compatible API (libimageflow) and a separate RESTful turnkey HTTP server and command-line tool. Linux, Mac, and Windows are supported.</Description>
0 commit comments