feat(tools): 2.0 phase 5 wave 5a - image gap-fill (11 tools) (#225)

This commit is contained in:
SnapOtter
2026-06-13 10:19:16 +08:00
parent fc7c1f850e
commit 6e1b9865f1
79 changed files with 7992 additions and 728 deletions
@@ -131,9 +131,14 @@ describe("tool x format matrix (generated)", () => {
!NON_RASTER_OUTPUT.has(outType.split(";")[0]) && outType.startsWith("image/");
const sharpDecodable =
isRaster &&
!["image/heic", "image/heif", "image/x-icon", "image/qoi"].includes(
outType.split(";")[0],
);
![
"image/heic",
"image/heif",
"image/x-icon",
"image/qoi",
"image/x-portable-pixmap",
"image/x-tga",
].includes(outType.split(";")[0]);
if (sharpDecodable) {
// The processed output must actually decode; a corrupt "success" is a bug.
const meta = await sharp(dl.rawPayload).metadata();