保存视觉审核与文档流迁移进度

This commit is contained in:
rain
2026-07-20 17:23:09 +08:00
parent 5a31a75da0
commit 01d246c47b
59 changed files with 3615 additions and 378 deletions
+30
View File
@@ -0,0 +1,30 @@
$ErrorActionPreference = 'Stop'
$root = Join-Path $PSScriptRoot '..'
$files = @(
'static/assets/modules/family/f08/f08-reunion-hero.png',
'static/assets/modules/family/f08/f08-family-portrait.png',
'static/assets/modules/family/f08/f08-reunion-table.png',
'static/assets/modules/family/f08/f08-ancestral-home.png',
'static/assets/modules/family/f08/f08-ancestral-portrait.png'
)
Add-Type -AssemblyName System.Drawing
foreach ($file in $files) {
$path = Join-Path $root $file
if (-not (Test-Path -LiteralPath $path)) {
throw "Missing F08 album asset: $file"
}
$image = [System.Drawing.Image]::FromFile($path)
try {
if ($image.Width -lt 960 -or $image.Height -lt 720) {
throw "F08 album asset too small: $file $($image.Width)x$($image.Height)"
}
} finally {
$image.Dispose()
}
}
Write-Output 'F08-ALBUM-ASSETS-CONTRACT PASS'