An image viewer for Graphvizer
Graphvizer is a plugin for Sublime Text 3 to render image in real-time while you are writing. If you have tried it, you may find that its convenience is limited because Sublime Text is not a suitable image viewer as mentioned in issue #14.
Sublime Text can view image but it doesn't support zoom or pan the image. If the image is large, it will be very difficult to navigate it. That's why I write this viewer. GraphvizerViewer is an awesome supplement of Graphvizer. I bet you will like it.
- Zoom in/out
- Reset zoom
- Pan (Drag)
- Refresh automatically when the image is modified
- Multiple Tabs
For other features, please open an issue.
The program is written using PySide2, so the executable file size is a bit large.
# After install Python 3.x
pip install PySide2
python GraphvizerViewer.py
dnf install python3 libxkbcommon-x11 # apt-get, yum ...
pip3 install PySide2
python3 GraphvizerViewer.py
If you are using Anaconda Python distribution, you have to install PySide2 in conda way.
conda install -c conda-forge pyside2
python3 GraphvizerViewer.py
Just drag the image into the program window.
Use mouse wheel to zoom in and zoom out.
Keep left mouse button pressed and drag the image.
Use right mouse button to select an area. The selected area will be zoomed in to fit the window automatically when you release the right mouse button.
Double click the right mouse button to reset zoom.
Click New Tab
button to new an empty tab.
- Support opening image with file dialog
- Reduce the executable file size