Peertube: Thumbnail aspect ratio does not match video aspect

Created on 1 Aug 2020  路  5Comments  路  Source: Chocobozzz/PeerTube

What happened?

Video thumbnails seem to all be hardcoded to 16:9, vertical videos appear stretched:

image

What do you expect to happen instead?

The thumbnail should occupy the same outer container as other thumbnails but the image itself should be sized to maintain aspect ratio.

Steps to reproduce:

  1. Currently you can see this on https://diode.zone/videos/recently-added

Additional information

  • PeerTube version or URL: 2.2.0
  • Browser name/version: Chrome 84
  • NodeJS version: 10.20.1
  • Link to browser console log if useful:
  • Link to server log if useful (journalctl or /var/www/peertube/storage/logs/):
Type

Most helpful comment

use black columns is acceptable

All 5 comments

Yeah, I noticed this when I uploaded some videos which are 9:16 aspect ratio 1080 by 1920 from the iPad...

What's the best way to handle these videos? Should we use black columns or zoom in the image?
3a250ae3-068b-4680-a8e4-64a2e30de3e2

What's the best way to handle these videos? Should we use black columns or zoom in the image?
3a250ae3-068b-4680-a8e4-64a2e30de3e2

I would think neither... could this be handled in the CSS such that the actual page background shows through and the thumbnail is smaller yet fitting in the same bounding box as the 16:9 thumbnails. Zooming would almost always make the thumbnail unreadable i would think, and black bars seem unnecessary.

I feel if it could be handled that the image is just displayed within the 16:9 bounding box without affecting the aspect ratio would be best. This could result in some rather small thumbnails, but I'd rather that, and manually setting a thumbnail, than adding black bars (to the image), or cropping.

use black columns is acceptable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kabo picture kabo  路  3Comments

zilti picture zilti  路  3Comments

conferences-gesticulees picture conferences-gesticulees  路  3Comments

Jorropo picture Jorropo  路  3Comments

NoraCodes picture NoraCodes  路  3Comments