Open fagaillard opened 2 months ago
In your example, there are only landscape format videos. Does this also work with portrait format videos?
Hello,
Yes it works with portrait videos, but they are cropped because the width*height are hardcoded.
There is no direct way to get the videos informations with Hugo. But the thumbnails produced by ffmpeg have the same size as the videos. So we can use this information to get the right size.
I will try to improve my template
Kind regards
Fabrice
Le 30 sept. 2024 à 23:16, Erik Skopp @.***> a écrit :
In your example, there are only queer format videos. Does this also work with portrait videos?
— Reply to this email directly, view it on GitHub https://github.com/nicokaiser/hugo-theme-gallery/pull/87#issuecomment-2384158797, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4XJA2FEMQDIU5DG6A4B2TZZG5TBAVCNFSM6AAAAABOFIH3TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGE2TQNZZG4. You are receiving this because you authored the thread.
Hi @fagaillard, Personally, I think your change is great. May I use it in my own project?
Yes sure
Le 1 oct. 2024 à 19:08, Erik Skopp @.***> a écrit :
Hi @fagaillard https://github.com/fagaillard, Personally, I think your change is great. May I use it in my own project?
— Reply to this email directly, view it on GitHub https://github.com/nicokaiser/hugo-theme-gallery/pull/87#issuecomment-2386537566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4XJA46MGOIWIXEQIHY4ETZZLJIBAVCNFSM6AAAAABOFIH3TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBWGUZTONJWGY. You are receiving this because you were mentioned.
Hello,
I have created some basic templates for managing video galleries in addition to image galleries. it's just a basic prof of concept and I'm sure you can improve it.
to create a video gallery you need to add the type "video" in the front matter of that gallery like :
title: Riding woman video description: Videos a girls riding Animals. type: video keywords: ["AI", "AI-generated", "video", "gallery"] tags:
_build: publishResources: false
A demo is available on one of my website : https://www.tensor-art.com/videos/
I have included a simple basic shell script ( video_thumbnails.sh ) to help create thumbnails for the video with ffmpeg, because I did not find a way to do it natively with Hugo.
I hope you will find it interesting.
Kind regards
--Fabrice Gaillard