Restore PROMPT branding, rename waterfall-wiki, and add system tag workflows
waterfall-wiki CI and deployment / verify-and-deploy (push) Has been cancelled
studio CI and deployment / verify-and-deploy (push) Successful in 9m15s

This commit is contained in:
2026-10-27 00:35:59 +08:00
parent 0c1ed2d292
commit ad398db781
178 changed files with 585 additions and 365 deletions
@@ -0,0 +1,11 @@
import sharp from "sharp";
import {streetPeople} from "./street-people";
export async function validateCharacter(path:string) {
try {
const input=sharp(path,{limitInputPixels:streetPeople.limits.pixels});
const meta=await input.metadata();
if(meta.format!=="png"||!meta.hasAlpha)throw new Error("Character PNG must have transparency");
const stats=await input.stats();const alpha=stats.channels.at(-1)!;
if(alpha.min!==0||alpha.max<250)throw new Error("Character PNG must have transparency");
}catch{throw new Error("Character PNG must have transparency");}
}