Skip to content

Show image metadata in timeline (& lightbox) #18197

Closed
matrix-org/matrix-react-sdk
#6511
@HarHarLinks

Description

@HarHarLinks

Is your suggestion related to a problem? Please describe.

With matrix-org/matrix-react-sdk#6386 (and perhaps more?), the download button which used to be a green linkified text "description" under an imagefile in the timeline is gone. With it is gone the file name and size.

While I like the clean look, I also like to see file names and sizes. This could even be an opportunity to show more than before.

Describe the solution you'd like.

I would like that feature back in a way. Perhaps there is a way to make it fit better than adding back a caption:
With the reply redesign, replies to images "quote" the image like this:
image
I notice that even when sending an extremely wide (4k px) image like the following, there is still screen space left right:
image
In fact that seems to be a somewhat arbitrary limit (w=800px) for thumbnail size that just works out this way on my 1080p screen.
Perhaps that space could be repurposed somewhat similar to the reply view.

Similarly in the lightbox there is currently no metadata visible at all, even though I believe we had it prior to the lightbox (full size/screen image viewer) upgrade with fancy zooming rotating etc. There is plenty of space in the top bar. #17014

The info I would like:

  • file name
  • file size
  • image/video dimension
  • audio/video duration

I would be content if in the timeline, these would only be shown if there is space left to repurpose for them "anyway", i.e. most situation. Fewer (less height to fit the list), or no (image fills full width) is acceptable, since they can be explicitly viewed in the lightbox.

Describe alternatives you've considered.

This info could also be shown on hover: darken an image and put the text on top (ensure enough contrast). Kind of the reverse of the GIF indicator.
Audio will probably be always tiny enough to show it on the side.

This could also be an optional "power user" toggle in appearance.

Additional context

#17014

Metadata

Metadata

Assignees

Labels

A-MediaA-TimelineO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-EnhancementX-Regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions