Skip to content
Snippets Groups Projects

Preserve the original video/gif aspect ratio

Merged 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

Pipeline #36340 passed

Pipeline passed for 84a9e7e3 on image-height-fix

Merged by feldfeld 3 years ago (Jun 3, 2021 9:11pm UTC)

Loading

Pipeline #36341 passed

Pipeline passed for b7096ff9 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading