[PR #6819] [MERGED] Try to use Width and Height from ImageInfo to determine aspect ratio #11143

Closed
opened 2026-02-07 06:33:15 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/6819
Author: @cvium
Created: 11/11/2021
Status: Merged
Merged: 12/24/2021
Merged by: @crobibero

Base: masterHead: why_should_we_use_the_imageinfo_when_we_can_guess


📝 Commits (3)

  • d10de5b Try to use Width and Height from ImageInfo to determine aspect ratio
  • 0415d1c Reduce indentation
  • 5d19c26 Simplify

📊 Changes

1 file changed (+8 additions, -25 deletions)

View changed files

📝 Emby.Server.Implementations/Dto/DtoService.cs (+8 -25)

📄 Description

Changes
Primary aspect ratio is computed in a prioritized order:

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

Issues
Idk


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/6819 **Author:** [@cvium](https://github.com/cvium) **Created:** 11/11/2021 **Status:** ✅ Merged **Merged:** 12/24/2021 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `why_should_we_use_the_imageinfo_when_we_can_guess` --- ### 📝 Commits (3) - [`d10de5b`](https://github.com/jellyfin/jellyfin/commit/d10de5b7f93511daa3cf239b4b4c34dc79000969) Try to use Width and Height from ImageInfo to determine aspect ratio - [`0415d1c`](https://github.com/jellyfin/jellyfin/commit/0415d1ccef19c48a2eaa3c545648ce657f95cfb8) Reduce indentation - [`5d19c26`](https://github.com/jellyfin/jellyfin/commit/5d19c26d5966db3ff48c73f409290509815cd89a) Simplify ### 📊 Changes **1 file changed** (+8 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Dto/DtoService.cs` (+8 -25) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Primary aspect ratio is computed in a prioritized order: 1. From ImageInfo 2. From ImageProcessor 3. BaseItem.DefaultPrimaryImageAspectRatio **Issues** Idk --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:33:15 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11143