Skip to content

Preserve the original video/gif aspect ratio

Eugenij requested to merge image-height-fix into master

Closes #100 (closed)

  • The aspect ratio is preserved when resizing the feed:

gif-resize

  • 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)

no-reflow

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

Loading