mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-01 11:20:59 +03:00
[PR #520] [MERGED] Fix potential bug where aspect ratio would be incorrectly calculated #8366
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/520
Author: @hawken93
Created: 1/9/2019
Status: ✅ Merged
Merged: 1/16/2019
Merged by: @joshuaboniface
Base:
dev← Head:fix_aspect📝 Commits (1)
c75d03cFix potential problem where aspect ratio would be incorrectly calculated📊 Changes
1 file changed (+1 additions, -2 deletions)
View changed files
📝
MediaBrowser.Controller/Entities/Photo.cs(+1 -2)📄 Description
Just came across this function. If the image is flipped it would swap the width and height variables but still divide by the original height. For a flipped image this would lead to
return height / heightso this fixes that. I think it will save us some hunting in the future. But to be honest, I would like to evaluate if we need this aspect ratio magic. I would assume that the frontend would handle aspect ratios🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.