Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use Width and Height from ImageInfo to determine aspect ratio #6819

Conversation

cvium
Copy link
Member

@cvium cvium commented Nov 10, 2021

Changes
Primary aspect ratio is computed in a prioritized order:

  1. From ImageInfo
  2. From ImageProcessor
  3. BaseItem.DefaultPrimaryImageAspectRatio

Issues
Idk

if (!imageInfo.IsLocalFile)
{
return null;
return item.GetDefaultPrimaryImageAspectRatio();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should default to null like it used to

Copy link
Member

@crobibero crobibero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved pending testing

@crobibero
Copy link
Member

We're doing it live

@crobibero crobibero merged commit 8c7dd0a into jellyfin:master Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants