diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-06-26 10:12:22 -0400 |
|---|---|---|
| committer | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-06-26 10:12:22 -0400 |
| commit | 0e9164351b80b532b96fbf4edf98dbd483141183 (patch) | |
| tree | a0c399755abe3f32943b77422e67927d99b5120e /MediaBrowser.Controller/Drawing/IImageEncoder.cs | |
| parent | 4f6e5591ece8d9344385d13f923384abfc07b709 (diff) | |
| parent | 57caa9fdba984d0c4813c642f2617be905205d49 (diff) | |
Merge remote-tracking branch 'upstream/master' into external-id-type
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); |
