diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-06-02 17:25:45 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-02 17:25:45 +0300 |
| commit | b9618c8c015b5a49110c3abad8659525bdfac4fd (patch) | |
| tree | 11dded5020a3690a728c30898f7674e7c8a1cf01 /MediaBrowser.Controller/Drawing/IImageEncoder.cs | |
| parent | d38adb95a727203b0d0dcee344f03b374b5d2b8f (diff) | |
| parent | 26eef1bbf823e6f9fc22b11d95a17b1370b21842 (diff) | |
Merge pull request #2676 from GranPC/public-pr/blurhash
Implement Blurhash generation for images
Diffstat (limited to 'MediaBrowser.Controller/Drawing/IImageEncoder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Drawing/IImageEncoder.cs | 9 |
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); |
