#keyworda inkscape, svg, png, icon, powershell, cli {{{ # Inkscape 실행 파일 경로 (무설치 버전의 inkscape.exe 경로로 변경) $inkscapePath = "C:\path\to\inkscape-portable\inkscape\bin\inkscape.exe" # 입력 및 출력 폴더 경로 $inputFolder = "C:\path\to\svg\folder" $outputFolder = "C:\path\to\png\folder" # 출력 폴더가 없으면 생성 if (-not (Test-Path $outputFolder)) { New-Item -ItemType Directory -Path $outputFolder } # 입력 폴더의 모든 SVG 파일 순회 Get-ChildItem "$inputFolder\*.svg" | ForEach-Object { $filename = [System.IO.Path]::GetFileNameWithoutExtension($_.Name) $outputPath = Join-Path $outputFolder "$filename.png" # Inkscape CLI 명령어 실행 & $inkscapePath $_.FullName --export-filename="$outputPath" -w 1920 -h 1080 if ($?) { Write-Host "Converted: $($_.Name) -> $filename.png" } else { Write-Host "Error converting: $($_.Name)" } } }}}