Skip to content

[BUG] Small images have large empty margins #512

@geominorai

Description

@geominorai

Describe the bug

Images with dimensions smaller than the image viewport of the post end up with large empty margins.

Fritter does not seem to expand small images to fit the viewport but seems to use the dimensions provided by Twitter that seems to assume this will be done.

It is not clear whether following Twitter's approach to expand small images this way offers a good user experience, since there is not enough resolution in these images in the first place to not look horrible or illegible after stretching. Reducing the viewport size based on the actual image dimensions might be better.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://twitter.com/k45Fuel/status/1571535136465756168
  2. See error

Screenshots

Post as seen in Fritter and Firefox.

Device

Model: Samsung Galaxy S9+
OS: Android 10
Language: English
Fritter Version: v3.0.0-beta3+20220904

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions