Re-worked provider id's, api client, moved people to the api item wrapper and added server error handling

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-15 09:20:29 -04:00
parent d5cf6d59a3
commit 3f1af19ce7
36 changed files with 486 additions and 385 deletions

View File

@@ -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;