snapforge 2.0.0__tar.gz → 2.1.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.
- {snapforge-2.0.0 → snapforge-2.1.0}/PKG-INFO +14 -12
- {snapforge-2.0.0 → snapforge-2.1.0}/README.md +13 -11
- {snapforge-2.0.0 → snapforge-2.1.0}/pyproject.toml +1 -1
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge/__init__.py +1 -1
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge.egg-info/PKG-INFO +14 -12
- {snapforge-2.0.0 → snapforge-2.1.0}/setup.cfg +0 -0
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge/forge.py +0 -0
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge.egg-info/SOURCES.txt +0 -0
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge.egg-info/dependency_links.txt +0 -0
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge.egg-info/requires.txt +0 -0
- {snapforge-2.0.0 → snapforge-2.1.0}/snapforge.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snapforge
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Powerful and fast image editor! 😎
|
|
5
5
|
Author: Ali.Shm
|
|
6
6
|
Requires-Python: >=3.7
|
|
@@ -75,22 +75,22 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
75
75
|
### ⚙️ Core
|
|
76
76
|
|
|
77
77
|
| Method | Description | Example |
|
|
78
|
-
|
|
78
|
+
|:-------|:------------|:--------|
|
|
79
79
|
| `.convert(fmt)` | Change image format (PNG, JPG, WEBP...) | `.convert("PNG")` |
|
|
80
80
|
| `.resize(w, h)` | Change image dimensions | `.resize(800, 600)` |
|
|
81
81
|
| `.thumbnail(w, h)` | Resize while keeping aspect ratio | `.thumbnail(500, 500)` |
|
|
82
82
|
| `.fit(w, h)` | Resize and crop to exact dimensions | `.fit(1080, 1080)` |
|
|
83
|
-
| `.crop(l, t, r, b)` | Crop image | `.crop(0,0,100,100)` |
|
|
83
|
+
| `.crop(l, t, r, b)` | Crop image | `.crop(0, 0, 100, 100)` |
|
|
84
84
|
| `.rotate(a)` | Rotate image | `.rotate(90)` |
|
|
85
85
|
| `.optimize(q)` | Set JPEG quality | `.optimize(85)` |
|
|
86
|
-
| `.save(name)` | Save image | `.save("result.jpg")`
|
|
86
|
+
| `.save(name)` | Save image | `.save("result.jpg")` |
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
90
90
|
### 💡 Lighting
|
|
91
91
|
|
|
92
92
|
| Method | Description | Example |
|
|
93
|
-
|
|
93
|
+
|:-------|:------------|:--------|
|
|
94
94
|
| `.apply_brightness(f)` | Adjust brightness | `.apply_brightness(1.2)` |
|
|
95
95
|
| `.apply_contrast(f)` | Adjust contrast | `.apply_contrast(1.5)` |
|
|
96
96
|
| `.adjust_gamma(g)` | Correct image gamma | `.adjust_gamma(1.3)` |
|
|
@@ -102,24 +102,25 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
102
102
|
### 🎨 Filters
|
|
103
103
|
|
|
104
104
|
| Method | Description | Example |
|
|
105
|
-
|
|
105
|
+
|:-------|:------------|:--------|
|
|
106
106
|
| `.apply_sepia()` | Classic sepia effect | `.apply_sepia()` |
|
|
107
107
|
| `.apply_grayscale(f)` | Convert to grayscale | `.apply_grayscale(1.0)` |
|
|
108
108
|
| `.apply_blur(r)` | Gaussian blur | `.apply_blur(5.0)` |
|
|
109
|
-
| `.apply_sharpen()` | Sharpen image | `.apply_sharpen()` |
|
|
109
|
+
| `.apply_sharpen(f)` | Sharpen image | `.apply_sharpen(1.0)` |
|
|
110
110
|
| `.apply_camscanner()` | Document scanner effect | `.apply_camscanner()` |
|
|
111
111
|
| `.apply_preset(name)` | Apply a professional preset | `.apply_preset("vintage")` |
|
|
112
|
+
| `.double_exposure(img2, mode)` | Blend with another image | `.double_exposure("layer.png", "blend")` |
|
|
112
113
|
|
|
113
114
|
---
|
|
114
115
|
|
|
115
116
|
### ✨ Extras
|
|
116
117
|
|
|
117
118
|
| Method | Description | Example |
|
|
118
|
-
|
|
119
|
+
|:-------|:------------|:--------|
|
|
119
120
|
| `.flip(dir)` | Flip image | `.flip("horizontal")` |
|
|
120
121
|
| `.add_watermark(path)` | Add watermark | `.add_watermark("logo.png")` |
|
|
121
|
-
| `.add_text(text, pos)` | Draw text | `.add_text("Hello!", (50,50))` |
|
|
122
|
-
| `.add_border(size, color)` | Add border | `.add_border(10, (0,0,0))` |
|
|
122
|
+
| `.add_text(text, pos)` | Draw text | `.add_text("Hello!", (50, 50))` |
|
|
123
|
+
| `.add_border(size, color)` | Add border | `.add_border(10, (0, 0, 0))` |
|
|
123
124
|
| `.round_corners(radius)` | Round image corners | `.round_corners(40)` |
|
|
124
125
|
|
|
125
126
|
---
|
|
@@ -127,9 +128,10 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
127
128
|
### 📊 Analysis
|
|
128
129
|
|
|
129
130
|
| Method | Description | Example |
|
|
130
|
-
|
|
131
|
+
|:-------|:------------|:--------|
|
|
131
132
|
| `.histogram()` | Generate histogram data | `.histogram()` |
|
|
132
|
-
| `.compare()` | Display
|
|
133
|
+
| `.compare()` | Display metadata and processing summary | `.compare()` |
|
|
134
|
+
| `.extract_color_palette()` | Get dominant colors as Hex codes | `.extract_color_palette()` |
|
|
133
135
|
|
|
134
136
|
## 🛠️ Requirements
|
|
135
137
|
|
|
@@ -64,22 +64,22 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
64
64
|
### ⚙️ Core
|
|
65
65
|
|
|
66
66
|
| Method | Description | Example |
|
|
67
|
-
|
|
67
|
+
|:-------|:------------|:--------|
|
|
68
68
|
| `.convert(fmt)` | Change image format (PNG, JPG, WEBP...) | `.convert("PNG")` |
|
|
69
69
|
| `.resize(w, h)` | Change image dimensions | `.resize(800, 600)` |
|
|
70
70
|
| `.thumbnail(w, h)` | Resize while keeping aspect ratio | `.thumbnail(500, 500)` |
|
|
71
71
|
| `.fit(w, h)` | Resize and crop to exact dimensions | `.fit(1080, 1080)` |
|
|
72
|
-
| `.crop(l, t, r, b)` | Crop image | `.crop(0,0,100,100)` |
|
|
72
|
+
| `.crop(l, t, r, b)` | Crop image | `.crop(0, 0, 100, 100)` |
|
|
73
73
|
| `.rotate(a)` | Rotate image | `.rotate(90)` |
|
|
74
74
|
| `.optimize(q)` | Set JPEG quality | `.optimize(85)` |
|
|
75
|
-
| `.save(name)` | Save image | `.save("result.jpg")`
|
|
75
|
+
| `.save(name)` | Save image | `.save("result.jpg")` |
|
|
76
76
|
|
|
77
77
|
---
|
|
78
78
|
|
|
79
79
|
### 💡 Lighting
|
|
80
80
|
|
|
81
81
|
| Method | Description | Example |
|
|
82
|
-
|
|
82
|
+
|:-------|:------------|:--------|
|
|
83
83
|
| `.apply_brightness(f)` | Adjust brightness | `.apply_brightness(1.2)` |
|
|
84
84
|
| `.apply_contrast(f)` | Adjust contrast | `.apply_contrast(1.5)` |
|
|
85
85
|
| `.adjust_gamma(g)` | Correct image gamma | `.adjust_gamma(1.3)` |
|
|
@@ -91,24 +91,25 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
91
91
|
### 🎨 Filters
|
|
92
92
|
|
|
93
93
|
| Method | Description | Example |
|
|
94
|
-
|
|
94
|
+
|:-------|:------------|:--------|
|
|
95
95
|
| `.apply_sepia()` | Classic sepia effect | `.apply_sepia()` |
|
|
96
96
|
| `.apply_grayscale(f)` | Convert to grayscale | `.apply_grayscale(1.0)` |
|
|
97
97
|
| `.apply_blur(r)` | Gaussian blur | `.apply_blur(5.0)` |
|
|
98
|
-
| `.apply_sharpen()` | Sharpen image | `.apply_sharpen()` |
|
|
98
|
+
| `.apply_sharpen(f)` | Sharpen image | `.apply_sharpen(1.0)` |
|
|
99
99
|
| `.apply_camscanner()` | Document scanner effect | `.apply_camscanner()` |
|
|
100
100
|
| `.apply_preset(name)` | Apply a professional preset | `.apply_preset("vintage")` |
|
|
101
|
+
| `.double_exposure(img2, mode)` | Blend with another image | `.double_exposure("layer.png", "blend")` |
|
|
101
102
|
|
|
102
103
|
---
|
|
103
104
|
|
|
104
105
|
### ✨ Extras
|
|
105
106
|
|
|
106
107
|
| Method | Description | Example |
|
|
107
|
-
|
|
108
|
+
|:-------|:------------|:--------|
|
|
108
109
|
| `.flip(dir)` | Flip image | `.flip("horizontal")` |
|
|
109
110
|
| `.add_watermark(path)` | Add watermark | `.add_watermark("logo.png")` |
|
|
110
|
-
| `.add_text(text, pos)` | Draw text | `.add_text("Hello!", (50,50))` |
|
|
111
|
-
| `.add_border(size, color)` | Add border | `.add_border(10, (0,0,0))` |
|
|
111
|
+
| `.add_text(text, pos)` | Draw text | `.add_text("Hello!", (50, 50))` |
|
|
112
|
+
| `.add_border(size, color)` | Add border | `.add_border(10, (0, 0, 0))` |
|
|
112
113
|
| `.round_corners(radius)` | Round image corners | `.round_corners(40)` |
|
|
113
114
|
|
|
114
115
|
---
|
|
@@ -116,9 +117,10 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
116
117
|
### 📊 Analysis
|
|
117
118
|
|
|
118
119
|
| Method | Description | Example |
|
|
119
|
-
|
|
120
|
+
|:-------|:------------|:--------|
|
|
120
121
|
| `.histogram()` | Generate histogram data | `.histogram()` |
|
|
121
|
-
| `.compare()` | Display
|
|
122
|
+
| `.compare()` | Display metadata and processing summary | `.compare()` |
|
|
123
|
+
| `.extract_color_palette()` | Get dominant colors as Hex codes | `.extract_color_palette()` |
|
|
122
124
|
|
|
123
125
|
## 🛠️ Requirements
|
|
124
126
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snapforge
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Powerful and fast image editor! 😎
|
|
5
5
|
Author: Ali.Shm
|
|
6
6
|
Requires-Python: >=3.7
|
|
@@ -75,22 +75,22 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
75
75
|
### ⚙️ Core
|
|
76
76
|
|
|
77
77
|
| Method | Description | Example |
|
|
78
|
-
|
|
78
|
+
|:-------|:------------|:--------|
|
|
79
79
|
| `.convert(fmt)` | Change image format (PNG, JPG, WEBP...) | `.convert("PNG")` |
|
|
80
80
|
| `.resize(w, h)` | Change image dimensions | `.resize(800, 600)` |
|
|
81
81
|
| `.thumbnail(w, h)` | Resize while keeping aspect ratio | `.thumbnail(500, 500)` |
|
|
82
82
|
| `.fit(w, h)` | Resize and crop to exact dimensions | `.fit(1080, 1080)` |
|
|
83
|
-
| `.crop(l, t, r, b)` | Crop image | `.crop(0,0,100,100)` |
|
|
83
|
+
| `.crop(l, t, r, b)` | Crop image | `.crop(0, 0, 100, 100)` |
|
|
84
84
|
| `.rotate(a)` | Rotate image | `.rotate(90)` |
|
|
85
85
|
| `.optimize(q)` | Set JPEG quality | `.optimize(85)` |
|
|
86
|
-
| `.save(name)` | Save image | `.save("result.jpg")`
|
|
86
|
+
| `.save(name)` | Save image | `.save("result.jpg")` |
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
90
90
|
### 💡 Lighting
|
|
91
91
|
|
|
92
92
|
| Method | Description | Example |
|
|
93
|
-
|
|
93
|
+
|:-------|:------------|:--------|
|
|
94
94
|
| `.apply_brightness(f)` | Adjust brightness | `.apply_brightness(1.2)` |
|
|
95
95
|
| `.apply_contrast(f)` | Adjust contrast | `.apply_contrast(1.5)` |
|
|
96
96
|
| `.adjust_gamma(g)` | Correct image gamma | `.adjust_gamma(1.3)` |
|
|
@@ -102,24 +102,25 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
102
102
|
### 🎨 Filters
|
|
103
103
|
|
|
104
104
|
| Method | Description | Example |
|
|
105
|
-
|
|
105
|
+
|:-------|:------------|:--------|
|
|
106
106
|
| `.apply_sepia()` | Classic sepia effect | `.apply_sepia()` |
|
|
107
107
|
| `.apply_grayscale(f)` | Convert to grayscale | `.apply_grayscale(1.0)` |
|
|
108
108
|
| `.apply_blur(r)` | Gaussian blur | `.apply_blur(5.0)` |
|
|
109
|
-
| `.apply_sharpen()` | Sharpen image | `.apply_sharpen()` |
|
|
109
|
+
| `.apply_sharpen(f)` | Sharpen image | `.apply_sharpen(1.0)` |
|
|
110
110
|
| `.apply_camscanner()` | Document scanner effect | `.apply_camscanner()` |
|
|
111
111
|
| `.apply_preset(name)` | Apply a professional preset | `.apply_preset("vintage")` |
|
|
112
|
+
| `.double_exposure(img2, mode)` | Blend with another image | `.double_exposure("layer.png", "blend")` |
|
|
112
113
|
|
|
113
114
|
---
|
|
114
115
|
|
|
115
116
|
### ✨ Extras
|
|
116
117
|
|
|
117
118
|
| Method | Description | Example |
|
|
118
|
-
|
|
119
|
+
|:-------|:------------|:--------|
|
|
119
120
|
| `.flip(dir)` | Flip image | `.flip("horizontal")` |
|
|
120
121
|
| `.add_watermark(path)` | Add watermark | `.add_watermark("logo.png")` |
|
|
121
|
-
| `.add_text(text, pos)` | Draw text | `.add_text("Hello!", (50,50))` |
|
|
122
|
-
| `.add_border(size, color)` | Add border | `.add_border(10, (0,0,0))` |
|
|
122
|
+
| `.add_text(text, pos)` | Draw text | `.add_text("Hello!", (50, 50))` |
|
|
123
|
+
| `.add_border(size, color)` | Add border | `.add_border(10, (0, 0, 0))` |
|
|
123
124
|
| `.round_corners(radius)` | Round image corners | `.round_corners(40)` |
|
|
124
125
|
|
|
125
126
|
---
|
|
@@ -127,9 +128,10 @@ Here is the complete list of all available methods in SnapForge:
|
|
|
127
128
|
### 📊 Analysis
|
|
128
129
|
|
|
129
130
|
| Method | Description | Example |
|
|
130
|
-
|
|
131
|
+
|:-------|:------------|:--------|
|
|
131
132
|
| `.histogram()` | Generate histogram data | `.histogram()` |
|
|
132
|
-
| `.compare()` | Display
|
|
133
|
+
| `.compare()` | Display metadata and processing summary | `.compare()` |
|
|
134
|
+
| `.extract_color_palette()` | Get dominant colors as Hex codes | `.extract_color_palette()` |
|
|
133
135
|
|
|
134
136
|
## 🛠️ Requirements
|
|
135
137
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|