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