aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ImageProcessor.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-15 09:20:29 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-15 09:20:29 -0400
commit3f1af19ce7702a3310842f812563e580b2ca4408 (patch)
tree8890b7f227ac45d260cee48ebc32619d472fea5e /MediaBrowser.Api/ImageProcessor.cs
parentd5cf6d59a30cc989d7e33c6eb6ac378e6339b2f3 (diff)
Re-worked provider id's, api client, moved people to the api item wrapper and added server error handling
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;