Generate BlurHash images from an existing image.
Project description
blurhashify
Generate BlurHash images from an existing image.
Installation
Via pip:
pip install blurhashify
Via pipx:
pipx install blurhashify
Usage
blurhashify
and
Usage: blurhashify [OPTIONS] FILE_PATH
Generate BlurHash images from an existing image.
Options:
-w, --width INTEGER The width of the output images (in px). [default: input image
width]
-h, --height INTEGER The height of the output images (in px). [default: input
image height]
-s, --scale INTEGER The number to multiply the width and height of the output
images by. [default: 1]
-p, --punch INTEGER The punch of output images. This design option adjusts the
contrast in output images. Smaller values make the effect more
subtle, while larger values make it stronger. [default: 1]
-v, --verbose Enable verbose logging.
--version Show the version and exit.
--help Show this message and exit.
References
- https://github.com/woltapp/blurhash
- https://github.com/halcy/blurhash-python
- https://github.com/woltapp/blurhash-python
- https://github.com/joaopalmeiro/flake8-import-as-module
- https://python-poetry.org/docs/dependency-specification/#exact-requirements + https://github.com/python-poetry/poetry/issues/1440#issuecomment-1105165877
- https://dataewan.com/blog/poetry-python-command-line/
- https://github.com/alvarobartt/python-package-template
- https://github.com/ofek/hatch-vcs
- https://github.com/aka-raccoon/hatch-aws
- https://hatch.pypa.io/latest/blog/2022/10/08/hatch-v160/#virtual-environment-location + https://github.com/pypa/hatch/issues/715
Development
VS Code profile: Python
hatch config set dirs.env.virtual .hatch
hatch config show --all
hatch env create dev
hatch env find
hatch env show
hatch version
hatch -e dev run pip show blurhashify
hatch -e dev run blurhashify --help
hatch -e dev run blurhashify 06_IMG_1974.jpg
or
hatch -e dev run blurhashify 06_IMG_1974.jpg --verbose
hatch run dev:check
Copy the output of the help command (hatch -e dev run blurhashify --help) and paste it in the Usage section.
Deployment
hatch project metadata
hatch version
git tag
git ls-remote --tags origin
hatch version micro
or
hatch version minor
Commit the blurhashify/__init__.py file with the updated version.
git tag "v$(hatch version)"
git tag
git push origin --tags
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blurhashify-0.1.1.tar.gz.
File metadata
- Download URL: blurhashify-0.1.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d5dc988d89b69528a85b3d61a7d91adfee1546a30ae1fad9dcf731e50250825
|
|
| MD5 |
e9f9fe29f9570a1481f01aeaafd1f9c6
|
|
| BLAKE2b-256 |
218c0d2ddfa64be4c8305379cc741799d956d212e774dd66975443e194820183
|
File details
Details for the file blurhashify-0.1.1-py3-none-any.whl.
File metadata
- Download URL: blurhashify-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
101ce42676de0448f2c161d97c7d1734519ab75ee249ef74ed488f0773ce36e4
|
|
| MD5 |
208b34bb02a11852e6f85abc6731d65d
|
|
| BLAKE2b-256 |
986811338b7aa5965c1fc8a2e19092698fa2ac928fa87007e246ad9e93e8a9c9
|