Display images on a kitty terminal with optional resizing.
Project description
pixcat
WORK IN PROGRESS
Display images on a kitty terminal
with optional custom/thumbnail/fit-to-screen resizing.
Developed with the goal of being a more powerful alternative to kitty icat
,
while also providing an usable Python 3.6+ API.
Usage
Basic CLI examples:
pixcat file.jpg
pixcat fit-screen --enlarge /tmp/abc.jpg
pixcat thumbnail --size 128 --align left 'https://picsum.photos/480?random'
pixcat resize --min-width 1920 --min-height 1080 \
--max-width 1920 --max-height 1080 \
~/images/wallpapers 1.jpg 2.png
The commands and options have short forms too.
See pixcat --help
for more information.
Same examples using the Python package (no documentation yet):
from pixcat import Image
Image("file.jpg").show()
Image("/tmp/abc.jpg").fit_screen(enlarge=True).show()
Image("https://picsum.photos/480?random").thumbnail(128).show(align="left")
for i in Image.factory("~/images/wallpapers", "1.jpg", "2.png"):
i.resize(1920, 1080, 1920, 1080).show()
Installation
Requires Python 3.6+, tested on GNU/Linux only.
pip3 install --upgrade pixcat
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pixcat-0.1.4.tar.gz
(9.8 kB
view details)
Built Distribution
pixcat-0.1.4-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file pixcat-0.1.4.tar.gz
.
File metadata
- Download URL: pixcat-0.1.4.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 657c8fe04513caecccd6086b347aa4b85db6b4c0f761b162cb9cd789abe7abb6 |
|
MD5 | 5b263b888545c2eee72ce71b3bf383d4 |
|
BLAKE2b-256 | 61ed4212f7edd385863b9ecaf3b5fb82aebbb0ee638beeaf16dbf718a636db39 |
File details
Details for the file pixcat-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pixcat-0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21308ff5c5fd216a8fe9bf8dd7f554d0a5ec08f1fd4a273291352ca3b371b91e |
|
MD5 | 1ae6be37fdfbabeb931e94a06c63944d |
|
BLAKE2b-256 | 5fa99dc8ca0d01a09ca7d8e3ef1fe9f2a918f5698c3a8b947fb106d6177d5b38 |