cang-ying/engines/gen_adboard.js
Guanghu Domestic Migration a2fa7d57d8 chore: import sanitized domestic snapshot for REPO-005
Source snapshot: 23037fa3a2e9b0597162735755e92fc763bf4d94
2026-07-17 15:55:48 +08:00

34 lines
1.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env node
/**
* 铸渊 · 生成天道宗广告牌支架 · 文字后期叠加
*/
const { generateImage } = require('./image-api-adapter');
const PROMPT = [
'一块竖立的木质广告牌支架',
'由两根木棍支撑一块方形木板',
'木板表面光滑平整',
'木板上没有任何文字',
'木板是浅色原木色',
'放在古旧的石墙旁边',
'地面是石板路',
'中国风修仙世界',
'3D游戏引擎高质量渲染',
'白天自然光',
'木板朝向观众'
].join('');
const OUTPUT = '/Volumes/JZAO/铸渊-ICE-GL-ZY001/OUT-输出/图片/zai-fu-fei-xiu-xian/ep01/anchors/prop-ad-board-base-v1.png';
(async () => {
console.log('[铸渊·广告牌] 提交生成...');
try {
const result = await generateImage({ prompt: PROMPT, size: '1728x2304', outputPath: OUTPUT });
console.log('[铸渊·广告牌] ✅ 成功:', result.imagePath);
console.log(JSON.stringify(result, null, 2));
} catch (err) {
console.error('[铸渊·广告牌] ❌ 失败:', err.message);
process.exit(1);
}
})();