fix: [barobill] PPT BI 로고 base64 임베딩으로 수정 (복구 경고 해결)

This commit is contained in:
김보곤
2026-03-22 20:37:56 +09:00
parent 2715daa87c
commit 0fe24d18b3
2 changed files with 10 additions and 1 deletions

View File

@@ -1,8 +1,15 @@
const path = require('path');
const fs = require('fs');
module.paths.unshift(path.join(require('os').homedir(), '.claude/skills/pptx-skill/scripts/node_modules'));
const PptxGenJS = require('pptxgenjs');
// BI 로고를 base64로 변환
const biLogoPath = '/home/aweso/sam/docs/assets/bi/sam_bi_white.png';
const biLogoBase64 = fs.existsSync(biLogoPath)
? 'image/png;base64,' + fs.readFileSync(biLogoPath).toString('base64')
: null;
async function main() {
const pres = new PptxGenJS();
pres.defineLayout({ name: 'CUSTOM_16x9', width: 10, height: 5.625 });
@@ -67,7 +74,9 @@ async function main() {
slide1.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.blue } });
// BI 로고
slide1.addImage({ path: '/home/aweso/sam/docs/assets/bi/sam_bi_white.png', x: 0.7, y: 0.5, w: 1.2, h: 0.5 });
if (biLogoBase64) {
slide1.addImage({ data: biLogoBase64, x: 0.7, y: 0.5, w: 1.2, h: 1.2 });
}
// 제목 영역
slide1.addText('바로빌 서비스 이관 완료 보고', {