diff options
| author | Max Git <rotvel@gmail.com> | 2020-06-02 20:17:13 +0200 |
|---|---|---|
| committer | Max Git <rotvel@gmail.com> | 2020-06-02 20:17:13 +0200 |
| commit | 5577cc375e93b32ef4cc874813a90dbe50be3279 (patch) | |
| tree | b629a047a019d629c8196717d9967eaccab41982 /MediaBrowser.Controller/Drawing/IImageEncoder.cs | |
| parent | e103d087d316bc19bf6227b21e8d9dfd091fd6a7 (diff) | |
| parent | b9618c8c015b5a49110c3abad8659525bdfac4fd (diff) | |
Merge branch 'master' into feature/ffmpeg-version-check
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); |
