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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: blopic-2.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 77f4cbd3d502e9eea53165287c4fbbea78bc0c072d1b726e84bb21648307392b
MD5 fbee4a00bf9c68430a40d2c5b8e3065a
BLAKE2b-256 2943316d7d70d155e468027da3f396ccd00fbdeef38618e8089e2c8aa7b0eb9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blopic-2.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0797562a3c8b123ee0fc8282d5bf0bc9836fcc0a391b97610bbb28d167598f
MD5 0f9892d27bbbfb204758b720b8a9d945
BLAKE2b-256 d918a4019a8c2cdba1339de8dc204d0622a01fcbb412ad29a3bc22bcfb7a637e

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