Simple image viewer
Project description
SaltViewer
Very simple image viewer on tkinter.
Why
I use mcomix on Linux for a long time. However, default mcomix do not support
- GIF animation
- Trash command
Thus I need mcomix alternative. I want to treat
- Many image type
- Archive files, like zip, rar, 7z
- Animation image like GIF
- Trash image or archive
Feature
- Single script
- Support archive
- Zip, Rar, 7z, Pdf
- Support many image types
- pillow
- svg
- Support dual page mode
- Support animation
- duration auto adjustment
- GIF, PNG
- Repetition key
- For example
100h
means go to next 100 page.
- For example
- Delete image
- Configure file
How to install
pip install salt-viewer
I use python3.9.3
. However it will work on old version greater than python3.5
.
This scripts use these pip modules.
- cairosvg
- natsort
- pdf2python
- pillow
- py7zr
- rarfile
- send2trash
And use these packages.
- unrar(preferred), unar or bsdtar
- For rarfile
- poppler
- For pdf2python
How to Use
Now you can use salt-viewer
command.
salt-viewer <image file | archive file>
If you use linux, you should use alias for time saving.
alias sv=salt-viewer
Keymap
Cutout from default configuration file.
[Keymap]
DoublePage = d
TrashFile = Delete
NextPage = h
PrevPage = l
# You can use repetition for NextPage and PrevPage.
# For example, 2h means goto next 2 page, type 100h go to next 100 page.
# If you want to reset number, type <Esc>, <Ctrl+[> or simply <[>
NextArchive = j
PrevArchive = k
FitNone = N
FitWidth = W
FitHeight = H
FitBoth = B
PageOrder = o
Quit = q
Head = g
Tail = G
TODO
- Cache image for speed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
salt-viewer-0.1.2.tar.gz
(23.2 kB
view details)
Built Distribution
File details
Details for the file salt-viewer-0.1.2.tar.gz
.
File metadata
- Download URL: salt-viewer-0.1.2.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd6482573319094119eb31e07de28714777f28a05f4b7e00086dd800d08731c |
|
MD5 | c67bc841765b30721afd15511dedc34b |
|
BLAKE2b-256 | 8cbf6d411a2ff196ed6a6fc68a365edb849f34c944ad45b74ca5349841b0c0d8 |
File details
Details for the file salt_viewer-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: salt_viewer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9bb51838ef80df7f03a3723f2e4b7fdc94f654dee2b8ec56d0eceda4ba692a3 |
|
MD5 | 5cffe24db83c9196dcd53b3d35f2e226 |
|
BLAKE2b-256 | 46d97d4d56dc3da784b091d04fe2a6dfcdb52f063243e0bc46960e254b40e549 |