Add Resize to fill box alternative to image endpoints

This commit is contained in:
Odd Stråbø
2021-03-17 00:15:09 +01:00
parent 240e67d485
commit 383aa4e4d9
4 changed files with 161 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.Drawing
{
// Determine the output size based on incoming parameters
var newSize = DrawingUtils.Resize(originalImageSize.Value, options.Width ?? 0, options.Height ?? 0, options.MaxWidth ?? 0, options.MaxHeight ?? 0);
newSize = DrawingUtils.ResizeFill(newSize, options.FillWidth, options.FillHeight);
return newSize;
}