본문으로 건너뛰기
TL ToolLab

이미지 도구

SVG → PNG 변환기

SVG 파일을 PNG 이미지로 변환하세요. 너비·높이·배경색을 설정하고 고해상도 PNG를 즉시 다운로드합니다.

{ this.svgCode = ev.target.result; }; r.readAsText(f); }, async convert() { if(!this.svgCode.trim()) return; const s = parseFloat(this.scale)||1; const w = this.width * s, h = this.height * s; const blob = new Blob([this.svgCode], {type:'image/svg+xml'}); const url = URL.createObjectURL(blob); const img = new Image(); img.onload = () => { const canvas = document.createElement('canvas'); canvas.width = w; canvas.height = h; const ctx = canvas.getContext('2d'); if(!this.transparent) { ctx.fillStyle = this.bgColor; ctx.fillRect(0,0,w,h); } ctx.drawImage(img, 0, 0, w, h); URL.revokeObjectURL(url); this.preview = canvas.toDataURL('image/png'); }; img.src = url; }, download() { if(!this.preview) return; const a = document.createElement('a'); a.href = this.preview; a.download = this.filename; a.click(); } }">

SVG Input

Detected size: → 출력:

Preview & Download