Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcoder doesn't create thumbs of videos in portrait orientation #47

Open
tyssen opened this issue Mar 28, 2021 · 2 comments
Open

Transcoder doesn't create thumbs of videos in portrait orientation #47

tyssen opened this issue Mar 28, 2021 · 2 comments
Labels

Comments

@tyssen
Copy link

tyssen commented Mar 28, 2021

Describe the bug

As the title says, Transcoder doesn't create thumbs of videos in portrait orientation using the code below:

{% set videoURL = "#{imageServerUrl}/reviews/#{productUrl}/#{sampleMoviesDir}/#{row.ReviewSampleMovieFileName}" %}
{% set transVideoThumbUrl = craft.transcoder.getVideoThumbnailUrl(videoURL, {
    "width": 550,
    "height": 367,
    "timeInSecs": 2,
})%}

<img src="{{transVideoThumbUrl}}">

Videos in landscape orientation are fine. I can provide a link to a page that demonstrates the problem but would prefer to share the link privately.

Versions

  • Plugin version: 1.2.14
  • Craft version: 3.5.19.1
@tyssen tyssen added the bug label Mar 28, 2021
@khalwat
Copy link
Contributor

khalwat commented May 10, 2021

Have you tried changing the mode to crop? e.g.:

{% set transVideoThumbUrl = craft.transcoder.getVideoThumbnailUrl(videoURL, {
    "aspectRatio": "crop",
    "width": 550,
    "height": 367,
    "timeInSecs": 2,
})%}

@tyssen
Copy link
Author

tyssen commented May 12, 2021

Doing that results in landscape orientation videos that previously produced thumbs no longer working too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants