Skip to content

A self-hosted media server and file management system

fix: storyboard makes sprite sheets larger than 10x10

aminnausin9773ba2a0c7c
diff --git a/app/Services/Images/Storyboard/StoryboardOptions.php b/app/Services/Images/Storyboard/StoryboardOptions.php
index 408f4497..d10fc39e 100644
--- a/app/Services/Images/Storyboard/StoryboardOptions.php
+++ b/app/Services/Images/Storyboard/StoryboardOptions.php
@@ -52,7 +52,7 @@ class StoryboardOptions {
$expectedFrames = ceil($metadata->duration * $fps);
$cols = min(10, $expectedFrames);
- $rows = max(1, ceil($expectedFrames / $cols));
+ $rows = min(10, max(1, ceil($expectedFrames / $cols)));
$skipFrameNokey = match (true) {
$fps <= 0.1 => true,