imgtoolpro 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- imgtoolpro-1.0.0/LICENSE +21 -0
- imgtoolpro-1.0.0/PKG-INFO +144 -0
- imgtoolpro-1.0.0/README.md +102 -0
- imgtoolpro-1.0.0/imgtoolpro/__init__.py +1 -0
- imgtoolpro-1.0.0/imgtoolpro/converter.py +149 -0
- imgtoolpro-1.0.0/imgtoolpro.egg-info/PKG-INFO +144 -0
- imgtoolpro-1.0.0/imgtoolpro.egg-info/SOURCES.txt +11 -0
- imgtoolpro-1.0.0/imgtoolpro.egg-info/dependency_links.txt +1 -0
- imgtoolpro-1.0.0/imgtoolpro.egg-info/requires.txt +1 -0
- imgtoolpro-1.0.0/imgtoolpro.egg-info/top_level.txt +1 -0
- imgtoolpro-1.0.0/pyproject.toml +46 -0
- imgtoolpro-1.0.0/setup.cfg +4 -0
- imgtoolpro-1.0.0/tests/test_converter.py +6 -0
imgtoolpro-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 karan.rf
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: imgtoolpro
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A Python image processing toolkit for simple and practical image operations.
|
|
5
|
+
Author: karan.rf
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 karan.rf
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
Keywords: image,converter,jpg,jpeg,png,gif,pillow,python,image-processing
|
|
28
|
+
Classifier: Programming Language :: Python :: 3
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
30
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
31
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Operating System :: OS Independent
|
|
37
|
+
Requires-Python: >=3.8
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
License-File: LICENSE
|
|
40
|
+
Requires-Dist: Pillow>=10.0.0
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
imgtoolpro
|
|
44
|
+
|
|
45
|
+
A Python image processing toolkit for simple and practical image operations.
|
|
46
|
+
|
|
47
|
+
Introduction
|
|
48
|
+
|
|
49
|
+
imgtoolpro is a Python library designed to provide useful and easy-to-use tools for working with images.
|
|
50
|
+
|
|
51
|
+
The goal of this project is to create a lightweight and expandable toolkit that allows developers to perform common image-related tasks with a simple and organized structure.
|
|
52
|
+
|
|
53
|
+
The library is designed to grow over time by adding more image processing features and utilities.
|
|
54
|
+
|
|
55
|
+
Current Features
|
|
56
|
+
|
|
57
|
+
• Image format conversion
|
|
58
|
+
• Simple image handling utilities
|
|
59
|
+
• Clean and organized project structure
|
|
60
|
+
• Lightweight and easy to integrate
|
|
61
|
+
• Expandable design for future features
|
|
62
|
+
|
|
63
|
+
About The Project
|
|
64
|
+
|
|
65
|
+
imgtoolpro is created with simplicity and flexibility in mind.
|
|
66
|
+
|
|
67
|
+
The library is designed to provide practical image processing tools with a clean and simple structure, making it easy to integrate into different Python projects.
|
|
68
|
+
|
|
69
|
+
The project architecture allows new modules and features to be added in future versions.
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
|
|
73
|
+
Install imgtoolpro using pip:
|
|
74
|
+
|
|
75
|
+
bash
|
|
76
|
+
pip install imgtoolpro
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Example
|
|
80
|
+
|
|
81
|
+
Convert a JPG image to JPEG format:
|
|
82
|
+
|
|
83
|
+
python
|
|
84
|
+
from imgtoolpro import converter
|
|
85
|
+
|
|
86
|
+
converter.jpg_to_jpeg(
|
|
87
|
+
"input_file",
|
|
88
|
+
"output_file"
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
Requirements
|
|
93
|
+
|
|
94
|
+
• Python 3.8 or higher
|
|
95
|
+
• Pillow 10.0.0 or higher
|
|
96
|
+
|
|
97
|
+
Supported Python Versions
|
|
98
|
+
|
|
99
|
+
Currently supported versions:
|
|
100
|
+
|
|
101
|
+
• Python 3.8
|
|
102
|
+
• Python 3.9
|
|
103
|
+
• Python 3.10
|
|
104
|
+
• Python 3.11
|
|
105
|
+
• Python 3.12
|
|
106
|
+
• Python 3.13
|
|
107
|
+
|
|
108
|
+
Feature Overview
|
|
109
|
+
|
|
110
|
+
Image Conversion
|
|
111
|
+
|
|
112
|
+
Convert images between different formats with simple and efficient tools.
|
|
113
|
+
|
|
114
|
+
Currently, imgtoolpro provides image format conversion features.
|
|
115
|
+
|
|
116
|
+
More formats and conversion options may be added in future releases.
|
|
117
|
+
|
|
118
|
+
Future Development
|
|
119
|
+
|
|
120
|
+
Planned improvements may include:
|
|
121
|
+
|
|
122
|
+
• More image format support
|
|
123
|
+
• Additional conversion tools
|
|
124
|
+
• Image optimization features
|
|
125
|
+
• More image processing utilities
|
|
126
|
+
• New developer-friendly tools
|
|
127
|
+
|
|
128
|
+
Compatibility
|
|
129
|
+
|
|
130
|
+
imgtoolpro is designed to work on operating systems that support Python, including:
|
|
131
|
+
|
|
132
|
+
• Windows
|
|
133
|
+
• Linux
|
|
134
|
+
• macOS
|
|
135
|
+
|
|
136
|
+
Project Status
|
|
137
|
+
|
|
138
|
+
imgtoolpro is currently under active development.
|
|
139
|
+
|
|
140
|
+
New features, improvements, and optimizations will be added in future releases.
|
|
141
|
+
|
|
142
|
+
Author
|
|
143
|
+
|
|
144
|
+
Created by karan.rf
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
imgtoolpro
|
|
2
|
+
|
|
3
|
+
A Python image processing toolkit for simple and practical image operations.
|
|
4
|
+
|
|
5
|
+
Introduction
|
|
6
|
+
|
|
7
|
+
imgtoolpro is a Python library designed to provide useful and easy-to-use tools for working with images.
|
|
8
|
+
|
|
9
|
+
The goal of this project is to create a lightweight and expandable toolkit that allows developers to perform common image-related tasks with a simple and organized structure.
|
|
10
|
+
|
|
11
|
+
The library is designed to grow over time by adding more image processing features and utilities.
|
|
12
|
+
|
|
13
|
+
Current Features
|
|
14
|
+
|
|
15
|
+
• Image format conversion
|
|
16
|
+
• Simple image handling utilities
|
|
17
|
+
• Clean and organized project structure
|
|
18
|
+
• Lightweight and easy to integrate
|
|
19
|
+
• Expandable design for future features
|
|
20
|
+
|
|
21
|
+
About The Project
|
|
22
|
+
|
|
23
|
+
imgtoolpro is created with simplicity and flexibility in mind.
|
|
24
|
+
|
|
25
|
+
The library is designed to provide practical image processing tools with a clean and simple structure, making it easy to integrate into different Python projects.
|
|
26
|
+
|
|
27
|
+
The project architecture allows new modules and features to be added in future versions.
|
|
28
|
+
|
|
29
|
+
Installation
|
|
30
|
+
|
|
31
|
+
Install imgtoolpro using pip:
|
|
32
|
+
|
|
33
|
+
bash
|
|
34
|
+
pip install imgtoolpro
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
Example
|
|
38
|
+
|
|
39
|
+
Convert a JPG image to JPEG format:
|
|
40
|
+
|
|
41
|
+
python
|
|
42
|
+
from imgtoolpro import converter
|
|
43
|
+
|
|
44
|
+
converter.jpg_to_jpeg(
|
|
45
|
+
"input_file",
|
|
46
|
+
"output_file"
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Requirements
|
|
51
|
+
|
|
52
|
+
• Python 3.8 or higher
|
|
53
|
+
• Pillow 10.0.0 or higher
|
|
54
|
+
|
|
55
|
+
Supported Python Versions
|
|
56
|
+
|
|
57
|
+
Currently supported versions:
|
|
58
|
+
|
|
59
|
+
• Python 3.8
|
|
60
|
+
• Python 3.9
|
|
61
|
+
• Python 3.10
|
|
62
|
+
• Python 3.11
|
|
63
|
+
• Python 3.12
|
|
64
|
+
• Python 3.13
|
|
65
|
+
|
|
66
|
+
Feature Overview
|
|
67
|
+
|
|
68
|
+
Image Conversion
|
|
69
|
+
|
|
70
|
+
Convert images between different formats with simple and efficient tools.
|
|
71
|
+
|
|
72
|
+
Currently, imgtoolpro provides image format conversion features.
|
|
73
|
+
|
|
74
|
+
More formats and conversion options may be added in future releases.
|
|
75
|
+
|
|
76
|
+
Future Development
|
|
77
|
+
|
|
78
|
+
Planned improvements may include:
|
|
79
|
+
|
|
80
|
+
• More image format support
|
|
81
|
+
• Additional conversion tools
|
|
82
|
+
• Image optimization features
|
|
83
|
+
• More image processing utilities
|
|
84
|
+
• New developer-friendly tools
|
|
85
|
+
|
|
86
|
+
Compatibility
|
|
87
|
+
|
|
88
|
+
imgtoolpro is designed to work on operating systems that support Python, including:
|
|
89
|
+
|
|
90
|
+
• Windows
|
|
91
|
+
• Linux
|
|
92
|
+
• macOS
|
|
93
|
+
|
|
94
|
+
Project Status
|
|
95
|
+
|
|
96
|
+
imgtoolpro is currently under active development.
|
|
97
|
+
|
|
98
|
+
New features, improvements, and optimizations will be added in future releases.
|
|
99
|
+
|
|
100
|
+
Author
|
|
101
|
+
|
|
102
|
+
Created by karan.rf
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import converter
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
from PIL import Image, UnidentifiedImageError
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def _check_input(input_file):
|
|
6
|
+
if not isinstance(input_file, str):
|
|
7
|
+
raise TypeError("input_file باید رشته باشد.")
|
|
8
|
+
|
|
9
|
+
if not os.path.isfile(input_file):
|
|
10
|
+
raise FileNotFoundError(f"فایل پیدا نشد: {input_file}")
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
Image.open(input_file).close()
|
|
14
|
+
except UnidentifiedImageError:
|
|
15
|
+
raise ValueError("فایل تصویر معتبر نیست.")
|
|
16
|
+
except Exception as e:
|
|
17
|
+
raise RuntimeError(f"خطا در باز کردن فایل: {e}")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def _check_output(output_file):
|
|
21
|
+
if not isinstance(output_file, str):
|
|
22
|
+
raise TypeError("output_file باید رشته باشد.")
|
|
23
|
+
|
|
24
|
+
folder = os.path.dirname(output_file)
|
|
25
|
+
|
|
26
|
+
if folder != "" and not os.path.isdir(folder):
|
|
27
|
+
raise FileNotFoundError("پوشه مقصد وجود ندارد.")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _open_image(path):
|
|
31
|
+
image = Image.open(path)
|
|
32
|
+
|
|
33
|
+
if image.mode in ("RGBA", "LA"):
|
|
34
|
+
background = Image.new("RGB", image.size, (255, 255, 255))
|
|
35
|
+
background.paste(image, mask=image.split()[-1])
|
|
36
|
+
image = background
|
|
37
|
+
|
|
38
|
+
elif image.mode == "P":
|
|
39
|
+
image = image.convert("RGBA")
|
|
40
|
+
background = Image.new("RGB", image.size, (255, 255, 255))
|
|
41
|
+
background.paste(image, mask=image.split()[-1])
|
|
42
|
+
image = background
|
|
43
|
+
|
|
44
|
+
elif image.mode != "RGB":
|
|
45
|
+
image = image.convert("RGB")
|
|
46
|
+
|
|
47
|
+
return image
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _save(image, output_file, fmt):
|
|
51
|
+
try:
|
|
52
|
+
image.save(output_file, fmt)
|
|
53
|
+
finally:
|
|
54
|
+
image.close()
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def jpeg_to_jpg(input_file, output_file):
|
|
58
|
+
_check_input(input_file)
|
|
59
|
+
_check_output(output_file)
|
|
60
|
+
image = _open_image(input_file)
|
|
61
|
+
_save(image, output_file, "JPEG")
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def jpg_to_jpeg(input_file, output_file):
|
|
65
|
+
_check_input(input_file)
|
|
66
|
+
_check_output(output_file)
|
|
67
|
+
image = _open_image(input_file)
|
|
68
|
+
_save(image, output_file, "JPEG")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def png_to_jpg(input_file, output_file):
|
|
72
|
+
_check_input(input_file)
|
|
73
|
+
_check_output(output_file)
|
|
74
|
+
image = _open_image(input_file)
|
|
75
|
+
_save(image, output_file, "JPEG")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def png_to_jpeg(input_file, output_file):
|
|
79
|
+
_check_input(input_file)
|
|
80
|
+
_check_output(output_file)
|
|
81
|
+
image = _open_image(input_file)
|
|
82
|
+
_save(image, output_file, "JPEG")
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def gif_to_png(input_file, output_file):
|
|
86
|
+
_check_input(input_file)
|
|
87
|
+
_check_output(output_file)
|
|
88
|
+
|
|
89
|
+
image = Image.open(input_file)
|
|
90
|
+
|
|
91
|
+
if image.mode == "P":
|
|
92
|
+
image = image.convert("RGBA")
|
|
93
|
+
|
|
94
|
+
image.save(output_file, "PNG")
|
|
95
|
+
image.close()
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def gif_to_jpg(input_file, output_file):
|
|
99
|
+
_check_input(input_file)
|
|
100
|
+
_check_output(output_file)
|
|
101
|
+
image = _open_image(input_file)
|
|
102
|
+
_save(image, output_file, "JPEG")
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def gif_to_jpeg(input_file, output_file):
|
|
106
|
+
_check_input(input_file)
|
|
107
|
+
_check_output(output_file)
|
|
108
|
+
image = _open_image(input_file)
|
|
109
|
+
_save(image, output_file, "JPEG")
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def jpg_to_png(input_file, output_file):
|
|
113
|
+
_check_input(input_file)
|
|
114
|
+
_check_output(output_file)
|
|
115
|
+
image = Image.open(input_file)
|
|
116
|
+
image.save(output_file, "PNG")
|
|
117
|
+
image.close()
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def jpeg_to_png(input_file, output_file):
|
|
121
|
+
_check_input(input_file)
|
|
122
|
+
_check_output(output_file)
|
|
123
|
+
image = Image.open(input_file)
|
|
124
|
+
image.save(output_file, "PNG")
|
|
125
|
+
image.close()
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def jpg_to_gif(input_file, output_file):
|
|
129
|
+
_check_input(input_file)
|
|
130
|
+
_check_output(output_file)
|
|
131
|
+
image = Image.open(input_file)
|
|
132
|
+
image.save(output_file, "GIF")
|
|
133
|
+
image.close()
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def jpeg_to_gif(input_file, output_file):
|
|
137
|
+
_check_input(input_file)
|
|
138
|
+
_check_output(output_file)
|
|
139
|
+
image = Image.open(input_file)
|
|
140
|
+
image.save(output_file, "GIF")
|
|
141
|
+
image.close()
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def png_to_gif(input_file, output_file):
|
|
145
|
+
_check_input(input_file)
|
|
146
|
+
_check_output(output_file)
|
|
147
|
+
image = Image.open(input_file)
|
|
148
|
+
image.save(output_file, "GIF")
|
|
149
|
+
image.close()
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: imgtoolpro
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A Python image processing toolkit for simple and practical image operations.
|
|
5
|
+
Author: karan.rf
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 karan.rf
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
Keywords: image,converter,jpg,jpeg,png,gif,pillow,python,image-processing
|
|
28
|
+
Classifier: Programming Language :: Python :: 3
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
30
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
31
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Operating System :: OS Independent
|
|
37
|
+
Requires-Python: >=3.8
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
License-File: LICENSE
|
|
40
|
+
Requires-Dist: Pillow>=10.0.0
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
imgtoolpro
|
|
44
|
+
|
|
45
|
+
A Python image processing toolkit for simple and practical image operations.
|
|
46
|
+
|
|
47
|
+
Introduction
|
|
48
|
+
|
|
49
|
+
imgtoolpro is a Python library designed to provide useful and easy-to-use tools for working with images.
|
|
50
|
+
|
|
51
|
+
The goal of this project is to create a lightweight and expandable toolkit that allows developers to perform common image-related tasks with a simple and organized structure.
|
|
52
|
+
|
|
53
|
+
The library is designed to grow over time by adding more image processing features and utilities.
|
|
54
|
+
|
|
55
|
+
Current Features
|
|
56
|
+
|
|
57
|
+
• Image format conversion
|
|
58
|
+
• Simple image handling utilities
|
|
59
|
+
• Clean and organized project structure
|
|
60
|
+
• Lightweight and easy to integrate
|
|
61
|
+
• Expandable design for future features
|
|
62
|
+
|
|
63
|
+
About The Project
|
|
64
|
+
|
|
65
|
+
imgtoolpro is created with simplicity and flexibility in mind.
|
|
66
|
+
|
|
67
|
+
The library is designed to provide practical image processing tools with a clean and simple structure, making it easy to integrate into different Python projects.
|
|
68
|
+
|
|
69
|
+
The project architecture allows new modules and features to be added in future versions.
|
|
70
|
+
|
|
71
|
+
Installation
|
|
72
|
+
|
|
73
|
+
Install imgtoolpro using pip:
|
|
74
|
+
|
|
75
|
+
bash
|
|
76
|
+
pip install imgtoolpro
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Example
|
|
80
|
+
|
|
81
|
+
Convert a JPG image to JPEG format:
|
|
82
|
+
|
|
83
|
+
python
|
|
84
|
+
from imgtoolpro import converter
|
|
85
|
+
|
|
86
|
+
converter.jpg_to_jpeg(
|
|
87
|
+
"input_file",
|
|
88
|
+
"output_file"
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
Requirements
|
|
93
|
+
|
|
94
|
+
• Python 3.8 or higher
|
|
95
|
+
• Pillow 10.0.0 or higher
|
|
96
|
+
|
|
97
|
+
Supported Python Versions
|
|
98
|
+
|
|
99
|
+
Currently supported versions:
|
|
100
|
+
|
|
101
|
+
• Python 3.8
|
|
102
|
+
• Python 3.9
|
|
103
|
+
• Python 3.10
|
|
104
|
+
• Python 3.11
|
|
105
|
+
• Python 3.12
|
|
106
|
+
• Python 3.13
|
|
107
|
+
|
|
108
|
+
Feature Overview
|
|
109
|
+
|
|
110
|
+
Image Conversion
|
|
111
|
+
|
|
112
|
+
Convert images between different formats with simple and efficient tools.
|
|
113
|
+
|
|
114
|
+
Currently, imgtoolpro provides image format conversion features.
|
|
115
|
+
|
|
116
|
+
More formats and conversion options may be added in future releases.
|
|
117
|
+
|
|
118
|
+
Future Development
|
|
119
|
+
|
|
120
|
+
Planned improvements may include:
|
|
121
|
+
|
|
122
|
+
• More image format support
|
|
123
|
+
• Additional conversion tools
|
|
124
|
+
• Image optimization features
|
|
125
|
+
• More image processing utilities
|
|
126
|
+
• New developer-friendly tools
|
|
127
|
+
|
|
128
|
+
Compatibility
|
|
129
|
+
|
|
130
|
+
imgtoolpro is designed to work on operating systems that support Python, including:
|
|
131
|
+
|
|
132
|
+
• Windows
|
|
133
|
+
• Linux
|
|
134
|
+
• macOS
|
|
135
|
+
|
|
136
|
+
Project Status
|
|
137
|
+
|
|
138
|
+
imgtoolpro is currently under active development.
|
|
139
|
+
|
|
140
|
+
New features, improvements, and optimizations will be added in future releases.
|
|
141
|
+
|
|
142
|
+
Author
|
|
143
|
+
|
|
144
|
+
Created by karan.rf
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
imgtoolpro/__init__.py
|
|
5
|
+
imgtoolpro/converter.py
|
|
6
|
+
imgtoolpro.egg-info/PKG-INFO
|
|
7
|
+
imgtoolpro.egg-info/SOURCES.txt
|
|
8
|
+
imgtoolpro.egg-info/dependency_links.txt
|
|
9
|
+
imgtoolpro.egg-info/requires.txt
|
|
10
|
+
imgtoolpro.egg-info/top_level.txt
|
|
11
|
+
tests/test_converter.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Pillow>=10.0.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
imgtoolpro
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "imgtoolpro"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "A Python image processing toolkit for simple and practical image operations."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = { file = "LICENSE" }
|
|
12
|
+
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "karan.rf" }
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
keywords = [
|
|
18
|
+
"image",
|
|
19
|
+
"converter",
|
|
20
|
+
"jpg",
|
|
21
|
+
"jpeg",
|
|
22
|
+
"png",
|
|
23
|
+
"gif",
|
|
24
|
+
"pillow",
|
|
25
|
+
"python",
|
|
26
|
+
"image-processing"
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
classifiers = [
|
|
30
|
+
"Programming Language :: Python :: 3",
|
|
31
|
+
"Programming Language :: Python :: 3.8",
|
|
32
|
+
"Programming Language :: Python :: 3.9",
|
|
33
|
+
"Programming Language :: Python :: 3.10",
|
|
34
|
+
"Programming Language :: Python :: 3.11",
|
|
35
|
+
"Programming Language :: Python :: 3.12",
|
|
36
|
+
"Programming Language :: Python :: 3.13",
|
|
37
|
+
"License :: OSI Approved :: MIT License",
|
|
38
|
+
"Operating System :: OS Independent"
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
dependencies = [
|
|
42
|
+
"Pillow>=10.0.0"
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.packages.find]
|
|
46
|
+
include = ["imgtoolpro"]
|