sixelcrop
Crop sixel images in sixel-space!
sixelcrop is a Python library and command line tool to crop sixel images
Installation
pipx install sixelcrop
# OR
pip install sixelcrop
Usage
Command Line
usage: sixelcrop [--help] [-x int] [-y int] [-w int] [-h int] [--no-private-colors] Path
Crop a sixel image in sixel space
positional arguments:
Path Path to sixel image file (use '-' to read data from standard input)
options:
--help
-x int, --left int The offset of the left edge of the target region
-y int, --top int The offset of the top edge of the target region
-w int, --width int The width of the target region
-h int, --height int The height of the target region
--no-private-colors Do not use private colors for each graphic
Example:
curl https://www.python.org/static/img/python-logo@2x.png | img2sixel | sixelcrop -x 10 -y 15 -w 120 -h 125 -
Python API
import sys
from sixelcrop import sixelcrop
with open("snake.six") as f:
data = f.read()
sys.stdout.write(sixelcrop(data, x=300, y=50, w=200, h=150))
License
sixelcrop is distributed under the terms of the MIT license.
Release files for sixelcrop 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sixelcrop-0.1.9.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sixelcrop-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / sixelcrop-0.1.9.tar.gz
| Download URL | sixelcrop-0.1.9.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6c05ac4fbd6e201f794aded12300fb427573172c0544a1fd25a48a66a5bc86f
|
|
BLAKE2b-256 checksum How to use checksums |
1c3dc576ad3649bec5259b8cc64a05b4c1fd7d1d1ee44e0b577d2e8891f41783
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / sixelcrop-0.1.9-py3-none-any.whl
| Download URL | sixelcrop-0.1.9-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed1648d040d480a41d7f76aa1fa19af4ba82caa895f6773eaadd32e04779dce1
|
|
BLAKE2b-256 checksum How to use checksums |
f0db48339b894ecbff7998a14b1a82c07d383b33108fd7c3becb6cae75bfa5af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|