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.