You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`pil_image_converter` is a Python package and CLI tool for converting images between different formats using the Pillow library. It supports conversions between JPG, PNG, BMP, and WebP formats.
4
+
`transimage` is a Python package and CLI tool for converting images between different formats using the Pillow library. It supports conversions between JPG, PNG, BMP, and WebP formats.
5
5
6
-
Contributions always welcome!
6
+
>> send your PR based god🙏🏻
7
7
8
8
## Features
9
9
- Convert images between JPG, PNG, BMP, and WebP formats
@@ -22,48 +22,21 @@ To set up the development environment:
22
22
1. Clone the repository
23
23
2. Install PDM if you haven't already: `pip install pdm`
### Using `main.py` directly as a CLI tool (Recommended)
27
+
### Using `____main____.py` directly as a CLI tool (Recommended)
28
28
29
-
If you've cloned the repository or downloaded the source code, you can use the `main.py` file directly:
29
+
Once you've cloned the repository or downloaded the source code, you can use the `__main__.py` file directly by using the following: `python __main__.py <input_path> <output_path> <output_format>`
### Using pil_image_converter in your own projects
39
+
You may test the transimage package is properly installed by running it directly from the command line: `python -m transimage <input_path> <output_path> <output_format>`
67
40
68
41
1. First, ensure you're working within a virtual environment with PDM:
69
42
@@ -72,7 +45,7 @@ For batch conversion, provide a directory as the input path:
72
45
2. In your Python script, import the necessary functions:
To convert a single image, use the ImageConverter class directly:
@@ -85,7 +58,7 @@ converter.convert()
85
58
For batch conversion, you can pass in directories as arguments instead of individual image paths. Then, use the collect_images function and loop through the results:
0 commit comments