blurhashify-0.1.1
توضیحات
Generate BlurHash images from an existing image.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | blurhashify-0.1.1 |
| نام | blurhashify |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | João Palmeiro <jm.palmeiro@campus.fct.unl.pt> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/blurhashify/ |
| مجوز | - |
# blurhashify
[](https://pypi.org/project/blurhashify/)
[](https://github.com/pypa/hatch)
Generate [BlurHash](https://github.com/woltapp/blurhash) images from an existing image.
## Installation
Via [pip](https://github.com/pypa/pip):
```bash
pip install blurhashify
```
Via [pipx](https://github.com/pypa/pipx):
```bash
pipx install blurhashify
```
## Usage
```bash
blurhashify
```
and
```text
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](https://github.com/joaopalmeiro/vscode-profiles/tree/main/Python)
```bash
hatch config set dirs.env.virtual .hatch
```
```bash
hatch config show --all
```
```bash
hatch env create dev
```
```bash
hatch env find
```
```bash
hatch env show
```
```bash
hatch version
```
```bash
hatch -e dev run pip show blurhashify
```
```bash
hatch -e dev run blurhashify --help
```
```bash
hatch -e dev run blurhashify 06_IMG_1974.jpg
```
or
```bash
hatch -e dev run blurhashify 06_IMG_1974.jpg --verbose
```
```bash
hatch run dev:check
```
Copy the output of the help command (`hatch -e dev run blurhashify --help`) and paste it in the [Usage](#usage) section.
## Deployment
```bash
hatch project metadata
```
```bash
hatch version
```
```bash
git tag
```
```bash
git ls-remote --tags origin
```
```bash
hatch version micro
```
or
```bash
hatch version minor
```
Commit the `blurhashify/__init__.py` file with the updated version.
```bash
git tag "v$(hatch version)"
```
```bash
git tag
```
```bash
git push origin --tags
```
نیازمندی
| مقدار | نام |
|---|---|
| - | blurhash-python==1.1.3 |
| - | click==8.1.3 |
| - | joblib==1.2.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl blurhashify-0.1.1:
pip install blurhashify-0.1.1.whl
نصب پکیج tar.gz blurhashify-0.1.1:
pip install blurhashify-0.1.1.tar.gz