heiseonline / embetty

🐙 Embetty displays remote content like tweets or YouTube videos without compromising your privacy.
MIT License
987 stars 32 forks source link

Low quality and distorted aspect ratio of the preview image in versions starting from 3.0.0 for at least youtube videos #427

Open level420 opened 3 months ago

level420 commented 3 months ago

Up to version 2.0.3 of the embetty server, the preview image of a youtube video was rendered fine, showing the preview image with the "native" resolution and aspect ratio of the video.

From version 3.0.0 on, it seems that the preview image is forced to a resolution of 480 x 360 px with an aspect ratio of 4:3, which leads to a distorted and low quality preview.

General information

Steps to reproduce the behaviour

Embed a youtube video for use with embetty, e.g. RvpudFBKUbo

Expected behaviour

The preview image rendered should have a resolution of 1280 x 720 px as with embetty server up to 2.0.3

screenshot-embetty-server-2-0-3

Actual behaviour

The preview image has a resolution of 480 x 360 px (aspect ratio 4:3) from embetty server starting with version 3.0.0 which leads to a distorted and low resolution up scaled image which looks ugly

screenshot-embetty-server-3-0-0

level420 commented 3 months ago

@pmb0 I've seen the latest commits were done by you. Are the issues still tracked by the heise-Team? Some reaction would be cool! Thanks allot!

pmb0 commented 3 months ago

Hi. At the time, I had not found a way to get the images in better quality without loading the Google code.

level420 commented 3 months ago

@pmb0 thank you for your answer. As the preview images are still retreived with the correct resolution and aspect ratio with the old server version 2.0.3: couldn't that code ther be used again for version 3.x ?

level420 commented 4 weeks ago

@pmb0 any chance that this will get fixed?