aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/NullImageEncoder.cs
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2019-01-22 18:13:47 -0500
committerGitHub <noreply@github.com>2019-01-22 18:13:47 -0500
commit28483bdb54be96ae83e0fded097f534d7e26ba1e (patch)
treee7f4b92326417ebf55eecdf68a01d2c3b9e660d7 /Emby.Drawing/NullImageEncoder.cs
parent920c39454c05e979eabe81877269cd4517a03ccf (diff)
parent8106c8393b711a7e1d40487e3caf2b014decbe28 (diff)
Merge pull request #651 from jellyfin/release-10.1.0
Release 10.1.0
Diffstat (limited to 'Emby.Drawing/NullImageEncoder.cs')
-rw-r--r--Emby.Drawing/NullImageEncoder.cs42
1 files changed, 11 insertions, 31 deletions
diff --git a/Emby.Drawing/NullImageEncoder.cs b/Emby.Drawing/NullImageEncoder.cs
index 95ea42ecf..e6f205a1f 100644
--- a/Emby.Drawing/NullImageEncoder.cs
+++ b/Emby.Drawing/NullImageEncoder.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using MediaBrowser.Controller.Drawing;
using MediaBrowser.Model.Drawing;
@@ -6,26 +6,15 @@ namespace Emby.Drawing
{
public class NullImageEncoder : IImageEncoder
{
- public string[] SupportedInputFormats
- {
- get
+ public string[] SupportedInputFormats =>
+ new[]
{
- return new[]
- {
- "png",
- "jpeg",
- "jpg"
- };
- }
- }
+ "png",
+ "jpeg",
+ "jpg"
+ };
- public ImageFormat[] SupportedOutputFormats
- {
- get
- {
- return new[] { ImageFormat.Jpg, ImageFormat.Png };
- }
- }
+ public ImageFormat[] SupportedOutputFormats => new[] { ImageFormat.Jpg, ImageFormat.Png };
public void CropWhiteSpace(string inputPath, string outputPath)
{
@@ -42,20 +31,11 @@ namespace Emby.Drawing
throw new NotImplementedException();
}
- public string Name
- {
- get { return "Null Image Encoder"; }
- }
+ public string Name => "Null Image Encoder";
- public bool SupportsImageCollageCreation
- {
- get { return false; }
- }
+ public bool SupportsImageCollageCreation => false;
- public bool SupportsImageEncoding
- {
- get { return false; }
- }
+ public bool SupportsImageEncoding => false;
public ImageSize GetImageSize(string path)
{