Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Stretched images on Akkoma #488

Closed
Jacocococo opened this issue Apr 5, 2023 · 0 comments
Closed

Stretched images on Akkoma #488

Jacocococo opened this issue Apr 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Jacocococo
Copy link

Describe the bug

Akkoma's API does not send metadata for media in the request. When the app tries to display an image, it will calculate the aspect ratio to display, but since the metadata is not present, it will result in the image being stretched until the user taps it to display in full screen.

To reproduce

Steps to reproduce the behavior:

  1. Log in to the app from an Akkoma account
  2. Find a post from another Akkoma account that contains an image
  3. The image will be stretched

Does this happen in the official app?

While I haven't tested it in reality, I am basically fully sure that it does. The code that causes this issue is in PhotoLayoutHelper.java and the code seems to be the same. Either way, this isn't something they would fix since it's not related to Mastodon specifically.

Screenshots and screen recordings

The text and radio buttons are very clearly stretched in the image.
Screenshot_20230405-151913

Version

Megalodon version: v1.2.0+fork.83

Crash log

The app does not crash, but the issue does worsen the experience of using the app on Akkoma

@Jacocococo Jacocococo added the bug Something isn't working label Apr 5, 2023
@sk22 sk22 closed this as completed in 8360008 May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant