aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-28 13:37:01 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-28 13:37:01 -0500
commitad82c9f5e95e2b1f94ba7adda047dbfbc38004ea (patch)
tree52ab08873cb353faff048edecf8d97d49114b4db /MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs
parentd748967c5de99ba20a788c2448b066fc3fc4fecb (diff)
New provider system. Only for people right now
Diffstat (limited to 'MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs
index 6378cef52..06a03ba1c 100644
--- a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs
+++ b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs
@@ -388,18 +388,18 @@ namespace MediaBrowser.Server.Implementations.Drawing
/// <param name="image">The image.</param>
/// <param name="outputFormat">The output format.</param>
/// <returns>ImageFormat.</returns>
- private ImageFormat GetOutputFormat(Image image, ImageOutputFormat outputFormat)
+ private System.Drawing.Imaging.ImageFormat GetOutputFormat(Image image, ImageOutputFormat outputFormat)
{
switch (outputFormat)
{
case ImageOutputFormat.Bmp:
- return ImageFormat.Bmp;
+ return System.Drawing.Imaging.ImageFormat.Bmp;
case ImageOutputFormat.Gif:
- return ImageFormat.Gif;
+ return System.Drawing.Imaging.ImageFormat.Gif;
case ImageOutputFormat.Jpg:
- return ImageFormat.Jpeg;
+ return System.Drawing.Imaging.ImageFormat.Jpeg;
case ImageOutputFormat.Png:
- return ImageFormat.Png;
+ return System.Drawing.Imaging.ImageFormat.Png;
default:
return image.RawFormat;
}
@@ -787,7 +787,7 @@ namespace MediaBrowser.Server.Implementations.Drawing
//And then save it in the cache
using (var outputStream = _fileSystem.GetFileStream(enhancedImagePath, FileMode.Create, FileAccess.Write, FileShare.Read, false))
{
- newImage.Save(ImageFormat.Png, outputStream, 100);
+ newImage.Save(System.Drawing.Imaging.ImageFormat.Png, outputStream, 100);
}
}
}