diff --git a/MediaBrowser.Api/Images/ImageRequest.cs b/MediaBrowser.Api/Images/ImageRequest.cs
index 1302b50002..fcb731f593 100644
--- a/MediaBrowser.Api/Images/ImageRequest.cs
+++ b/MediaBrowser.Api/Images/ImageRequest.cs
@@ -1,4 +1,4 @@
-using MediaBrowser.Controller.Drawing;
+using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Entities;
using ServiceStack.ServiceHost;
diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs
index 0a76175fd0..298d26a13f 100644
--- a/MediaBrowser.Api/Images/ImageService.cs
+++ b/MediaBrowser.Api/Images/ImageService.cs
@@ -7,6 +7,7 @@ using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Persistence;
using MediaBrowser.Controller.Providers;
+using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
using ServiceStack.ServiceHost;
diff --git a/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs b/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs
index b7f092fb85..b639d0b9c5 100644
--- a/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs
+++ b/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs
@@ -1,5 +1,6 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Providers;
+using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Entities;
using System;
using System.Collections.Generic;
@@ -36,19 +37,4 @@ namespace MediaBrowser.Controller.Drawing
public ImageOverlay Indicator { get; set; }
}
-
- public enum ImageOutputFormat
- {
- Original,
- Bmp,
- Gif,
- Jpg,
- Png
- }
-
- public enum ImageOverlay
- {
- None,
- Watched
- }
}
diff --git a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj
index 2098007d2d..eefabce762 100644
--- a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj
+++ b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj
@@ -83,6 +83,12 @@
Drawing\DrawingUtils.cs
+
+ Drawing\ImageOutputFormat.cs
+
+
+ Drawing\ImageOverlay.cs
+
Dto\BaseItemDto.cs
diff --git a/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj b/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj
index 4286c91eb6..9a491bcd40 100644
--- a/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj
+++ b/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj
@@ -67,6 +67,12 @@
Drawing\DrawingUtils.cs
+
+ Drawing\ImageOutputFormat.cs
+
+
+ Drawing\ImageOverlay.cs
+
Dto\BaseItemDto.cs
diff --git a/MediaBrowser.Model/Drawing/ImageOutputFormat.cs b/MediaBrowser.Model/Drawing/ImageOutputFormat.cs
new file mode 100644
index 0000000000..6cbe75a7a0
--- /dev/null
+++ b/MediaBrowser.Model/Drawing/ImageOutputFormat.cs
@@ -0,0 +1,30 @@
+
+namespace MediaBrowser.Model.Drawing
+{
+ ///
+ /// Enum ImageOutputFormat
+ ///
+ public enum ImageOutputFormat
+ {
+ ///
+ /// The original
+ ///
+ Original,
+ ///
+ /// The BMP
+ ///
+ Bmp,
+ ///
+ /// The GIF
+ ///
+ Gif,
+ ///
+ /// The JPG
+ ///
+ Jpg,
+ ///
+ /// The PNG
+ ///
+ Png
+ }
+}
diff --git a/MediaBrowser.Model/Drawing/ImageOverlay.cs b/MediaBrowser.Model/Drawing/ImageOverlay.cs
new file mode 100644
index 0000000000..9b6400f1cc
--- /dev/null
+++ b/MediaBrowser.Model/Drawing/ImageOverlay.cs
@@ -0,0 +1,18 @@
+
+namespace MediaBrowser.Model.Drawing
+{
+ ///
+ /// Enum ImageOverlay
+ ///
+ public enum ImageOverlay
+ {
+ ///
+ /// The none
+ ///
+ None,
+ ///
+ /// The watched
+ ///
+ Watched
+ }
+}
diff --git a/MediaBrowser.Model/Dto/ImageOptions.cs b/MediaBrowser.Model/Dto/ImageOptions.cs
index 8e1610d1f2..4276561865 100644
--- a/MediaBrowser.Model/Dto/ImageOptions.cs
+++ b/MediaBrowser.Model/Dto/ImageOptions.cs
@@ -1,5 +1,6 @@
-using System;
+using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Entities;
+using System;
namespace MediaBrowser.Model.Dto
{
@@ -69,9 +70,16 @@ namespace MediaBrowser.Model.Dto
/// true if [enable image enhancers]; otherwise, false.
public bool EnableImageEnhancers { get; set; }
+ public ImageOutputFormat Format { get; set; }
+
+ public ImageOverlay Indicator { get; set; }
+
public ImageOptions()
{
EnableImageEnhancers = true;
+
+ Format = ImageOutputFormat.Original;
+ Indicator = ImageOverlay.None;
}
}
}
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj
index d0e7ffd7b3..0822bfbc34 100644
--- a/MediaBrowser.Model/MediaBrowser.Model.csproj
+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj
@@ -46,6 +46,8 @@
+
+