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
Metadata
Release files for blurhashify 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blurhashify-0.1.1.tar.gz | 8.6 kB | Without provenance | Details for blurhashify-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blurhashify-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for blurhashify-0.1.1-py3-none-any.whl |
Total release size: 14.4 kB
Release files / blurhashify-0.1.1.tar.gz
| Download URL | blurhashify-0.1.1.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d5dc988d89b69528a85b3d61a7d91adfee1546a30ae1fad9dcf731e50250825
|
|
BLAKE2b-256 checksum How to use checksums |
218c0d2ddfa64be4c8305379cc741799d956d212e774dd66975443e194820183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.3
|
Release files / blurhashify-0.1.1-py3-none-any.whl
| Download URL | blurhashify-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
101ce42676de0448f2c161d97c7d1734519ab75ee249ef74ed488f0773ce36e4
|
|
BLAKE2b-256 checksum How to use checksums |
986811338b7aa5965c1fc8a2e19092698fa2ac928fa87007e246ad9e93e8a9c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.3
|
Security for blurhashify 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.