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.1.tar.gz
(23.2 kB
view details)
Built Distribution
File details
Details for the file salt-viewer-0.1.1.tar.gz
.
File metadata
- Download URL: salt-viewer-0.1.1.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 | 2f4091993ea06ced338de7f811c4996f07bb9491744482b853ad195305b0c6f6 |
|
MD5 | e9a6e4d51470b3664abf92a15e77286a |
|
BLAKE2b-256 | b526b803b0a70c8cf8f9070023f2b679117843636c8d2122467180cd960ae34a |
File details
Details for the file salt_viewer-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: salt_viewer-0.1.1-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 | ae2e15e74ff4af0ab105eee3183284bbfa98a15b5d1d1fe91ead6db0206b19b7 |
|
MD5 | 93d48060ae4ff332bc3995c5c6655a69 |
|
BLAKE2b-256 | 503d7a5bfffd8b9253ba073e1b466f030dfba3b545698b61c877f3fc8622779d |