aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Drawing/IImageEncoder.cs
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-06-14 12:49:19 +0200
committerDavid <daullmer@gmail.com>2020-06-14 12:49:19 +0200
commitac0a3180d7c8613001147700d8e6cef40f6a0d8c (patch)
treea8196f929c7897bc9dee745d8f75601620b978b5 /MediaBrowser.Controller/Drawing/IImageEncoder.cs
parent618b893c481a658820370cdf4f62c5a9a2deebd1 (diff)
parent0011e8df47380936742302ef40639a4626a780ed (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-librarystructure
Diffstat (limited to 'MediaBrowser.Controller/Drawing/IImageEncoder.cs')
-rw-r--r--MediaBrowser.Controller/Drawing/IImageEncoder.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.cs
index 88e67b648..e09ccd204 100644
--- a/MediaBrowser.Controller/Drawing/IImageEncoder.cs
+++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs
@@ -44,6 +44,15 @@ namespace MediaBrowser.Controller.Drawing
ImageDimensions GetImageSize(string path);
/// <summary>
+ /// Gets the blurhash of an image.
+ /// </summary>
+ /// <param name="xComp">Amount of X components of DCT to take.</param>
+ /// <param name="yComp">Amount of Y components of DCT to take.</param>
+ /// <param name="path">The filepath of the image.</param>
+ /// <returns>The blurhash.</returns>
+ string GetImageBlurHash(int xComp, int yComp, string path);
+
+ /// <summary>
/// Encode an image.
/// </summary>
string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat);