ProFilters 0.1__py3-none-any.whl

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.
FIL/__init__.py ADDED
@@ -0,0 +1,104 @@
1
+ from PIL import Image
2
+
3
+
4
+ class ProImageFilter :
5
+ class InverseColors:
6
+ def __init__(self,img : Image.Image , ss : bool = False):
7
+
8
+ img.convert('RGB')
9
+ width , height = img.size
10
+ pixels = img.load()
11
+
12
+ for y in range(height) :
13
+ for x in range(width) :
14
+ r , g , b = pixels[x , y]
15
+
16
+ pixels[x , y] = (255 - r, 255 - g, 255 - b)
17
+
18
+ if ss == True :
19
+ img.save()
20
+ else :
21
+ img.show()
22
+
23
+ class Glow :
24
+ def __init__(self,img : Image.Image , ss : bool = False):
25
+ crgb = 24
26
+
27
+ img.convert('RGB')
28
+ width , height = img.size
29
+ pixels = img.load()
30
+
31
+ for y in range(height) :
32
+ for x in range(width) :
33
+ r , g , b = pixels[x , y]
34
+
35
+ pixels[x,y] = (crgb+r,crgb+g,crgb+b)
36
+
37
+
38
+ if ss == True :
39
+ img.save()
40
+ else :
41
+ img.show()
42
+
43
+ class RedChannel :
44
+ '''تبقي الألوان الحمراء وتحذف الزرقاء و الخضراء وتضع مكانهمااللون الأخضر'''
45
+ def __init__(self,img : Image.Image , ss : bool = False) :
46
+ crgb = 24
47
+
48
+ img.convert('RGB')
49
+ width , height = img.size
50
+ pixels = img.load()
51
+
52
+ for y in range(height) :
53
+ for x in range(width) :
54
+ r , g , b = pixels[x , y]
55
+
56
+ pixels[x,y] = (r,0,0)
57
+
58
+
59
+ if ss == True :
60
+ img.save()
61
+ else :
62
+ img.show()
63
+
64
+ class GreenChannel :
65
+ '''تبقي الألوان الخضراء وتزيل الحمراء و الزرقاء و تضع مكانهما اللون الأخضر'''
66
+ def __init__(self,img : Image.Image , ss : bool = False) :
67
+ crgb = 24
68
+
69
+ img.convert('RGB')
70
+ width , height = img.size
71
+ pixels = img.load()
72
+
73
+ for y in range(height) :
74
+ for x in range(width) :
75
+ r , g , b = pixels[x , y]
76
+
77
+ pixels[x,y] = (0,g,0)
78
+
79
+
80
+ if ss == True :
81
+ img.save()
82
+ else :
83
+ img.show()
84
+
85
+ class BlueChannel :
86
+ '''تبقي الألوان الزرقاء وتحذف الحمراء و الخضراء وتضع مكانهما اللون الأزرق'''
87
+ def __init__(self,img : Image.Image , ss : bool = False) :
88
+ crgb = 24
89
+
90
+ img.convert('RGB')
91
+ width , height = img.size
92
+ pixels = img.load()
93
+
94
+ for y in range(height) :
95
+ for x in range(width) :
96
+ r , g , b = pixels[x , y]
97
+
98
+ pixels[x,y] = (0,0,b)
99
+
100
+
101
+ if ss == True :
102
+ img.save()
103
+ else :
104
+ img.show()
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: ProFilters
3
+ Version: 0.1
4
+ Summary: A library in Python Filters
5
+ Author: Yazeed-Bader
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Requires-Python: >=3.6
10
+ Dynamic: author
11
+ Dynamic: classifier
12
+ Dynamic: requires-python
13
+ Dynamic: summary
@@ -0,0 +1,5 @@
1
+ FIL/__init__.py,sha256=-neFTDeGV8RiRsoEu0atoYyyiRSG9LNazjf_8GENHIc,3135
2
+ profilters-0.1.dist-info/METADATA,sha256=nPT4EUGsDlbItX5j83SEw0hKjUr2hw7ijpH_T4HzgqQ,376
3
+ profilters-0.1.dist-info/WHEEL,sha256=YLJXdYXQ2FQ0Uqn2J-6iEIC-3iOey8lH3xCtvFLkd8Q,91
4
+ profilters-0.1.dist-info/top_level.txt,sha256=Ww7A2Hoaa_ZS2P8pYG3M9wNgN4Vdv5oDpmUalNmt3Y4,4
5
+ profilters-0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (81.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ FIL