From 9d8bf8bad347565a6ea1301dd882aa9093eb5b34 Mon Sep 17 00:00:00 2001 From: Claude Toupin Date: Fri, 18 Sep 2026 23:08:40 -0400 Subject: [PATCH] Add square video scaling to Crop-Clips.ps1 for non-1080 square resolutions, scaling to 1080x1080 when width equals height and dimensions are not already 1080 --- Crop-Clips.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Crop-Clips.ps1 b/Crop-Clips.ps1 index 4bd2de9..3e5ed75 100644 --- a/Crop-Clips.ps1 +++ b/Crop-Clips.ps1 @@ -179,6 +179,9 @@ foreach ($video in $videos) { elseif ($inInfo.Width -eq 2112 -and $inInfo.Height -eq 3744) { $vf = 'scale=-2:3840,crop=2160:3840:(in_w-2160)/2:0' } + elseif ($inInfo.Width -eq $inInfo.Height -and $inInfo.Width -ne 1080) { + $vf = 'scale=1080:1080' + } if (-not $vf) { Write-Host "Skipping: $($inInfo.FileName) (resolution $inRes)"