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.0.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

blopic-2.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blopic-2.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for blopic-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f3084da36bafc18ceaca52296bb85da62538d0d474f4f6fa9f13f6ffacd2ecdd
MD5 f759958a88a9fbfa3798244b7a48a123
BLAKE2b-256 4441013855d99f232e3884d5ada4690ed411c105019d022fb164931e768b2042

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blopic-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for blopic-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 040fe606e0be08793be99ee8a9c4e1f4d4f5c3f1c8f1b98b907d346ef5a12c20
MD5 6a5b15394dca4c65d4bb02717d7fb5dc
BLAKE2b-256 b59ea53e91c6cc3b7355da6b51f27ce5d6d3b8c019e8edaedfef1bfa66d648b6

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