aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ImageProcessor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/ImageProcessor.cs')
-rw-r--r--MediaBrowser.Api/ImageProcessor.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/ImageProcessor.cs b/MediaBrowser.Api/ImageProcessor.cs
index a798123e4..014f65598 100644
--- a/MediaBrowser.Api/ImageProcessor.cs
+++ b/MediaBrowser.Api/ImageProcessor.cs
@@ -8,9 +8,9 @@ namespace MediaBrowser.Api
{
public static class ImageProcessor
{
- public static void ProcessImage(string path, Stream toStream, int? width, int? height, int? maxWidth, int? maxHeight, int? quality)
+ public static void ProcessImage(Stream sourceImageStream, Stream toStream, int? width, int? height, int? maxWidth, int? maxHeight, int? quality)
{
- Image originalImage = Image.FromFile(path);
+ Image originalImage = Image.FromStream(sourceImageStream);
var newWidth = originalImage.Width;
var newHeight = originalImage.Height;