Metadata-Version: 2.1
Name: blopic
Version: 2.1.1
Summary: Tool to convert and resize image for blog post.
Author: romaiiiiinnn
License: MIT
Project-URL: Homepage, https://gitlab.com/romaiiiinnn/blog-post-image-converter
Project-URL: Bug Tracker, https://gitlab.com/romaiiiinnn/blog-post-image-converter/-/issues
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click ==8.1.7
Requires-Dist: Pillow ==10.2.0

# blopic (blog-post-image-converter)

## Description

**blopic** (for **blo**g-post **i**mage **c**onverter ) is a CLI tool developed to convert and resize image to good format & size for blog post.

## Dependencies

- [click](https://click.palletsprojects.com) to easily create a CLI

## Installation

### With `pip`

```console
pip install blog-post-image-converter
```

### With Docker

```console
docker pull romaiiiinnn/blopic
```

## Usage

```console
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

```console
blopic image.jpeg
```

#### With Docker

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

## Support

Got questions?

You could [open an issue here](https://gitlab.com/romaiiiinnn/blog-post-image-converter/-/issues).

## 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](https://gitlab.com/romaiiiinnn).

## License

Every details about licence are in a [separate document](LICENSE).
