Skip to main content

Tool to convert and resize image for blog post.

Project description

blopic (blog-post-image-converter)

Description

blopic (for blog-post image converter ) is a CLI tool developed to convert and resize image to good format & size for blog post.

Dependencies

  • click to easily create a CLI

Installation

With pip

pip install blog-post-image-converter

With Docker

docker pull romaiiiinnn/blopic

Usage

Usage: blopic [OPTIONS] IMAGE_PATH

  Resizes an image based on a target width passed as a parameter, then
  converts it to the WebP format.

Options:
  --version                   Show the version and exit.
  -w, --width INTEGER RANGE   Target width of the image  [default: 1200; x>0]
  -o, --output-dir DIRECTORY  Output directory  [default: .]
  -d, --delete                Delete source image after conversion.
  --help                      Show this message and exit.

Examples

Following command will create image named image.webp with a width of 1200px in current directory.

With installed package

blopic image.jpeg

With Docker

docker run --rm -v ${PWD}:/data -w /data romaiiiinnn/blopic image.jpeg

Support

Got questions?

You could open an issue here.

Contributing

This is an active open-source project. I am always open to people who want to use the code or contribute to it.

Thank you for being involved! :heart_eyes:

Authors & contributors

The original setup of this repository is by Romain RICHARD.

License

Every details about licence are in a separate document.

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

blopic-2.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

blopic-2.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file blopic-2.1.0.tar.gz.

File metadata

  • Download URL: blopic-2.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for blopic-2.1.0.tar.gz
Algorithm Hash digest
SHA256 953039f0dde16d73cc584c3c7eda56d59419bdf113ab75c26bc99fc07113290c
MD5 d3af496fd017cda67e05bbd75a4bdace
BLAKE2b-256 8b2c7024d7adf7131d07973426e868f067b04027e87278edb7a9a38d98801f6d

See more details on using hashes here.

File details

Details for the file blopic-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: blopic-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for blopic-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de036c700e6706d236d53d969198945c37ca943ee51d4e0a7417180125113bca
MD5 3ee5e7035756f6af6644dd1f0daf7e49
BLAKE2b-256 4af791b2f3e884c5734b1020bccc4bbe7652e52e82b76cc34a418143236bf305

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