A simple bulk image converter
Project description
Easy Image Converter
📷 Overview
Easy Image Converter is a powerful command-line interface (CLI) tool that allows you to quickly and easily bulk convert and resize image files. Whether you're a developer, designer, or simply someone who works with images often, this tool helps automate image processing tasks, making it faster, simpler, and more efficient.
With Easy Image Converter, you can convert images to different formats (e.g., JPEG, PNG, WEBP), resize them to custom dimensions, and apply compression, all with a few simple commands.
🛠 Features
- Bulk Image Conversion: Convert multiple images at once from one format to another (e.g., from PNG to JPEG, WEBP, etc.).
- Resize Images: Automatically resize your images to custom dimensions, keeping your workflow smooth and efficient.
- Compression: Control the output quality of images to reduce file sizes, especially for web usage or storage optimization.
- Progress Bar: Visual progress indication while converting and resizing images using the
tqdmlibrary. - Easy to Use: Accessible through the command line, no need for complicated software or manual image editing.
🚀 Installation
1. Install via pip
To install the Easy Image Converter package, simply run the following command in your terminal:
pip install easy-img-converter
2. Install from Source
If you'd like to install from source, clone the repository and run the following:
git clone https://github.com/NavvneetK/easy-img-converter.git
cd easy-img-converter
pip install .
🧑💻 Usage
After installing Easy Image Converter, you can use it directly from your terminal.
Converting Images
To convert a batch of images to a specific format (e.g., from PNG to JPEG), run the following command:
bulkimgconvert --input /path/to/input/folder --output /path/to/output/folder --format JPEG
--input: Path to the folder containing the images you want to convert.
--output: Path to the folder where converted images will be saved.
--format: The format you want to convert the images to (JPEG, PNG, WEBP).
Example: Convert all images in images/ to JPEG and save them in converted/:
bulkimgconvert --input images/ --output converted/ --format JPEG
Resize Images
-You can also resize the images during conversion. For example, to resize the images to 800x600 pixels, use the --resize option:
bulkimgconvert --input /path/to/input/folder --output /path/to/output/folder --format JPEG --resize 800 600
--resize: The dimensions to resize the images to (width height).
-Example: Convert and resize images to 800x600 pixels:
bulkimgconvert --input images/ --output resized/ --format JPEG --resize 800 600
Adjust Compression Quality
For formats like JPEG and WEBP, you can control the compression level using the --quality option. The default is 85, but you can increase or decrease it based on your preference:
bulkimgconvert --input /path/to/input/folder --output /path/to/output/folder --format JPEG --quality 75
--quality: The compression quality (from 0 to 100, where 100 is the best quality but largest file size).
Example: Convert and compress images at 75% quality:
bulkimgconvert --input images/ --output compressed/ --format JPEG --quality 75
📚 Requirements
Python 3.6+: The tool requires Python 3.6 or higher.
Pillow: The Python Imaging Library (PIL) fork, used for image processing.
tqdm: A Python library for adding progress bars to loops.
You can install the required dependencies using:
pip install -r requirements.txt
⚖️ License
This project is licensed under the MIT License - see the LICENSE file for details.
🛠 Contributing
Feel free to fork this project, make your changes, and submit a pull request! Contributions are welcome and encouraged.
If you have any ideas for new features, bug fixes, or improvements, feel free to open an issue or create a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bulkimgconvert-1.0.0.tar.gz.
File metadata
- Download URL: bulkimgconvert-1.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbff16e77938314c18630f5a35a137d3ac7dcfff8678b51e281291a888cec719
|
|
| MD5 |
c61e68bb01994cecbe818186df606d8e
|
|
| BLAKE2b-256 |
6aab4772687025a682106e20b04832c24ed85c081b893a07c5d5da3f2e974aaf
|
File details
Details for the file bulkimgconvert-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bulkimgconvert-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9842bf4eac0d1eafa2de5ecf7af423d82d2b353c933b9561c4c6a234f652d709
|
|
| MD5 |
8707abda13e2537b5cb9f943820dc23f
|
|
| BLAKE2b-256 |
7dbde12a49001889a20ec89aaef90f54300d626e5f40cd4f43d4ff68fc8f1fb8
|