Issue Bug Accepted Orphaned

#105671youtube shorts width/height landscape, portrait needed (after backend upload)

Sabine Deeken 11/21/24, 15:52 updated 01/16/26, 16:19

Description

one of my editors has added a youtube short to his user_upload and the with/height gets wromg: it’s landscape, not portrait. when manually I changed width and height of this video in sys_file_metadata, frontend renders perfect (I render with aspect-ratio in the news single template:

  <f:variable name="videowidth">{mediaElement.originalResource.properties.width}</f:variable>
  <f:variable name="videoheight">{mediaElement.originalResource.properties.height}</f:variable>
  <!-- width:{videowidth},height:{videoheight}-->
  <div class="mediaelement-video" style="--aspect-ratio: {videowidth}/{videoheight};">
        <f:media file="{mediaElement}" style="max-width:100%;"/>
    </div>

Could somebody have a look?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] youtube shorts width/height landscape, portrait needed (after backend upload) Resolves: #105671 Releases: main