Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yarikartoshe4ka/sublime-svg-viewer
Sublime Text 3 plugin for viewing SVG files as pictures
https://github.com/yarikartoshe4ka/sublime-svg-viewer
converter plugin sublime-text svg
Last synced: about 2 months ago
JSON representation
Sublime Text 3 plugin for viewing SVG files as pictures
- Host: GitHub
- URL: https://github.com/yarikartoshe4ka/sublime-svg-viewer
- Owner: YariKartoshe4ka
- License: mit
- Created: 2021-01-14T13:43:29.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T22:55:12.000Z (3 months ago)
- Last Synced: 2024-11-02T07:42:11.469Z (about 2 months ago)
- Topics: converter, plugin, sublime-text, svg
- Language: Python
- Homepage: https://packagecontrol.io/packages/SVG Viewer
- Size: 145 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## SVG Viewer
#### About
SVG Viewer is Sublime Text 3 plugin for viewing SVG files as pictures.
It is an improved version of the original [SVG Preview](https://github.com/chunqiuyiyu/sublime-svg-preview)#### Installation
###### Plugin
1. Make sure you already have [Package Control](https://packagecontrol.io/) installed
2. Open command pallete by pressing Ctrl+Shift+P
3. Choose "**Package Control: Install Package**" and then press Enter
4. Select "**SVG Viewer**" and press Enter###### Converter
After installing plugin, you can use it only in online mode.
If you want use plugin in offline mode you should install SVG to PNG converter
By default we support these converters:- [CairoSVG](https://cairosvg.org/)
- [Inkscape](https://inkscape.org/)
- [ImageMagick](https://imagemagick.org/)
- [SVGExport](https://github.com/shakiba/svgexport/) (DPI not supported)But you can [add](#adding-converter) another converter
#### Using
1. Open SVG file
2. Open command pallete and select "**SVG Viewer: View SVG**"
3. (if fisrt run) Choose SVG converter from the suggested converters
4. Profit!#### Settings
If you want edit settings, key bindings or converters, do:
Preferences → Package Settings → Settings / Key Bindings / Converters - Edit#### Adding converter
If you want to use another SVG to PNG converter, do:
1. Generate command and name of your converter, such as this
```json
{
"converter": "converter --input-file \"{name}\" --output-file \"{out}\" --dpi {dpi}"
}
```
2. Open converters.json file (Preferences → Package Settings → Converters - Edit) and add this string
3. Reopen Sublime Text, open command pallete, choose "**SVG Viewer: Change Converter**" and choose your converter
4. Profit!