mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-28 19:54:48 +03:00
Re-worked provider id's, api client, moved people to the api item wrapper and added server error handling
This commit is contained in:
parent
d5cf6d59a3
commit
3f1af19ce7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user