main
hau 2020-08-12 00:26:24 +07:00
parent f436e6a681
commit 582041a375
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,7 @@
# [imagemagick](https://github.com/ImageMagick/ImageMagick)
Convert `.svg` to `.png`:
```sh
convert input.svg output.png
```

View File

@ -1,11 +1,16 @@
# [inkscape](https://gitlab.com/inkscape/inkscape) # [inkscape](https://gitlab.com/inkscape/inkscape)
| Distribution | Package |
| ------------ | ---------- |
| Arch Linux | `inkscape` |
| Ubuntu | `inkscape` |
Convert `.svg` to `.png`: Convert `.svg` to `.png`:
```sh ```sh
# version < 1.0 # version < 1.0
inkscape -z -w 1024 -h 1024 input.svg -e output.png inkscape -z input.svg -e output.png
# version >= 1.0 # version >= 1.0
inkscape -w 1024 -h 1024 input.svg --export-filename output.png inkscape input.svg --export-filename output.png
``` ```