---
title: "แปลง SVG เป็น PNG"
description: "บน MacOS ให้ติดตั้ง inkscape (ผ่าน brew) แล้วใช้งานแบบนี้:"
canonical: https://oozou.com/til/convert-svg-to-png-79
locale: th
date: 2020-11-07
topic: macos
---

# แปลง SVG เป็น PNG

> บน MacOS ให้ติดตั้ง inkscape (ผ่าน brew) แล้วใช้งานแบบนี้:

Published: 2020-11-07 · Topic: [macos](https://oozou.com/th/til-topics/macos) ([markdown](https://oozou.com/th/til-topics/macos.md))

บน MacOS ให้ติดตั้ง **inkscape** (ผ่าน brew) แล้วใช้งานแบบนี้:

```shell
$ inkscape --export-type=png --export-dpi=200 --export-background-opacity=0 file.svg
```

คำสั่งนี้จะสร้างไฟล์ file.png ที่มีพื้นหลังโปร่งใส

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/th/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
