Preserve the original video/gif aspect ratio
Closes #100 (closed)
- The aspect ratio is preserved when resizing the feed:
- No layout reflow when the media is loaded (takes the proper height relative to the width of the feed using the provided by BE dimensions before the gif is downloaded)
Relies on the meta: {original: {width, height}}
attachment info provided by BE original-dimensions.diff as per Mastodon API https://docs.joinmastodon.org/methods/statuses/media/. This can be applied to the local media first and then perhaps federated the same way blurhash and focal point are federated (https://docs.joinmastodon.org/spec/activitypub/#extensions) for the remote media.
Edited by Eugenij
Merge request reports
Activity
mentioned in issue #100 (closed)
added 1 commit
- ff2fbeda - Use padding-bottom to define video/gif height relative to the width of the...
added 1 commit
- e25e6269 - Use padding-bottom to define video/gif height relative to the width of the...
mentioned in merge request !74 (merged)
added 3 commits
-
e25e6269...37b3a001 - 2 commits from branch
master
- 38c5c2d6 - Preserve original aspect ration for gifs and videos
-
e25e6269...37b3a001 - 2 commits from branch
added 1 commit
- 78091f3e - Preserve original aspect ration for gifs and videos
added 1 commit
- f5a2ed7a - Preserve original aspect ration for gifs and videos
added 1 commit
- 67b42def - Preserve original aspect ration for gifs and videos
added 1 commit
- 3a8cb534 - Preserve original aspect ration for gifs and videos
added 1 commit
- 752c8c0a - Preserve original aspect ration for gifs and videos
added 1 commit
- 76f6d515 - Preserve original aspect ration for gifs and videos
added 1 commit
- b15a855b - Preserve original aspect ration for gifs and videos
added 1 commit
- 33e4b931 - Preserve original aspect ration for gifs and videos
added 1 commit
- 5f83505e - Preserve original aspect ration for gifs and videos
Please register or sign in to reply