Skip to content

Improve image and video view #12

Description

@BashCooler

The viewer page (where you can swipe left and right) is held together by a non-maintained sheet library, a vibe-coded interactive image viewer and media_kit, which works fine mostly, but has some UX compromises and keeps crashing the app in debug mode on quick restart for no reason

Image viewer

Why not just use photo_view? - I don't like how zoom works, that's mostly it. It has some weird multi-step zoom system which requires you to first zoom in so the picture covers the screen, and only then zoom more. Even if I turn off the cover step it still passes through it on the way to full zoom

I'm looking for a viewer with these characteristics (or some of them):

  • two-step zoom (for example 1x/3x)
  • double-tap zoom so that after the animation the pointer position is the center of the screen
  • ability to zoom more than max scale and less than 1x with elastic resistance
  • pan must be restricted by the image's borders
  • ability to change page while zoomed in on the left/right edge

I found no library which can provide these features. It's painfully difficult to write one on my own and I don't want to use AI, it costs money and I hate the process

Video viewer

  • I see only one issue (besides crashes in debug mode) and that's the inability to separate controls from the player. I can't zoom the video because the controls would be zoomed as well

That said, if you know of any good libraries, examples or can write an image/video viewer yourself the help would be much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions