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

exposure: full-picture: fix deformed thumbnails for videos #143

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

QSchulz
Copy link
Contributor

@QSchulz QSchulz commented Apr 2, 2021

full-picture class used to fit the whole screen which is fine for photos
since they're cropped.

However when a video is to be put in full-picture class, its width is
limited to the one of the display though its thumbnail still has its
width and height set to 100%.

This makes the thumbnail not respect its original ratio and results in
in the video being surrounded by deformed parts of the thumbnail (the
thumbnail taking 100% of the display height while the video only takes
whatever is needed to respect the ratio with the width being 100% of
the display's).

Fixes #138.

Note: this branch conflicts with #137 though the conflict should be easy to resolve. I can rebase this branch or the other once one is merged if it makes it easier for maintainers to merge everything.

videos

full-picture class used to fit the whole screen which is fine for photos
since they're cropped.

However when a video is to be put in full-picture class, its width is
limited to the one of the display though its thumbnail still has its
width and height set to 100%.

This makes the thumbnail not respect its original ratio and results in
in the video being surrounded by deformed parts of the thumbnail (the
thumbnail taking 100% of the display height while the video only takes
whatever is needed to respect the ratio with the width being 100% of
the display's).

Fixes Psycojoker#138.

Signed-off-by: Quentin Schulz <[email protected]>
@beudbeud beudbeud merged commit 9e6bc4b into Psycojoker:master Jul 29, 2021
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.

Weird thumbnail created for videos on mobile
2 participants