mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-30 11:32:30 +00:00
Simplify image processing by removing image enhancers
This commit is contained in:
parent
d4de78693f
commit
ddf9b38799
13 changed files with 103 additions and 522 deletions
|
|
@ -316,11 +316,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
{
|
||||
if (VideoStream != null && VideoStream.Width.HasValue && VideoStream.Height.HasValue)
|
||||
{
|
||||
var size = new ImageDimensions
|
||||
{
|
||||
Width = VideoStream.Width.Value,
|
||||
Height = VideoStream.Height.Value
|
||||
};
|
||||
var size = new ImageDimensions(VideoStream.Width.Value, VideoStream.Height.Value);
|
||||
|
||||
var newSize = DrawingUtils.Resize(size,
|
||||
BaseRequest.Width ?? 0,
|
||||
|
|
@ -346,11 +342,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
{
|
||||
if (VideoStream != null && VideoStream.Width.HasValue && VideoStream.Height.HasValue)
|
||||
{
|
||||
var size = new ImageDimensions
|
||||
{
|
||||
Width = VideoStream.Width.Value,
|
||||
Height = VideoStream.Height.Value
|
||||
};
|
||||
var size = new ImageDimensions(VideoStream.Width.Value, VideoStream.Height.Value);
|
||||
|
||||
var newSize = DrawingUtils.Resize(size,
|
||||
BaseRequest.Width ?? 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue