Measure Canva logo placeholders and add slot-based logo placement

scripts/logo/measure-placeholders rasterises the Canva PDFs and measures
each logo placeholder's ink box and density into slots.generated.ts. The
new placement contains the logo in the measured box, shrinks denser logos
by up to 30 percent to match visual weight, picks knockout or a white chip
on dark surfaces, and passes an identity test per template. A contact
sheet compares each placeholder with the Arun P logo and three test logos.
This commit is contained in:
2026-10-04 06:40:10 +05:30
parent 74ba04e17f
commit 490c5b9009
11 changed files with 984 additions and 21 deletions
+3 -1
View File
@@ -16,7 +16,9 @@
"app:build:windows": "tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --features custom-protocol",
"app:build:windows:offline": "tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --features custom-protocol --config '{\"bundle\":{\"windows\":{\"webviewInstallMode\":{\"type\":\"offlineInstaller\"}}}}'",
"fonts:verify": "node scripts/fonts/verify.mjs",
"fonts:manifest": "node scripts/fonts/build-manifest.mjs"
"fonts:manifest": "node scripts/fonts/build-manifest.mjs",
"logo:measure": "node scripts/logo/measure-placeholders.mjs",
"logo:sheet": "node scripts/logo/contact-sheet.mjs"
},
"dependencies": {
"@carbon/icons-react": "^11.89.0",