Skip to main content

Generate BlurHash images from an existing image.

Project description

blurhashify

PyPI Hatch project

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blurhashify-0.1.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

blurhashify-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for blurhashify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6d5dc988d89b69528a85b3d61a7d91adfee1546a30ae1fad9dcf731e50250825
MD5 e9f9fe29f9570a1481f01aeaafd1f9c6
BLAKE2b-256 218c0d2ddfa64be4c8305379cc741799d956d212e774dd66975443e194820183

See more details on using hashes here.

File details

Details for the file blurhashify-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for blurhashify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 101ce42676de0448f2c161d97c7d1734519ab75ee249ef74ed488f0773ce36e4
MD5 208b34bb02a11852e6f85abc6731d65d
BLAKE2b-256 986811338b7aa5965c1fc8a2e19092698fa2ac928fa87007e246ad9e93e8a9c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page