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

fix(web): aspect ratio for videos with 90 CW and 270 CW orientation #3023

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

brighteyed
Copy link
Contributor

@brighteyed brighteyed commented Jun 29, 2023

This is a follow up PR for #3003.

#3003 fixed the aspect ratio calculation for photos. Since ffprobe returns other values for the orientation tag (-90, 90, etc.), getAspectRatio should handle both exiftool-vendored range (1-8) and ffprobe values (-90, 90, 180, etc.)

@vercel
Copy link

vercel bot commented Jun 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
immich ⬜️ Ignored (Inspect) Jun 29, 2023 6:34am

@alextran1502 alextran1502 merged commit dca48d7 into main Jun 29, 2023
@alextran1502 alextran1502 deleted the fix/videos-aspect-ratio branch June 29, 2023 13:11
@jrasm91
Copy link
Contributor

jrasm91 commented Jun 29, 2023

Another option is to detect a rotated image (+/- 90) and flip image height/width accordingly in the exif info. Then everything could be used as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants