glowbyte 0.1.0__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.
glowbyte/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: glowbyte
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Python image composition engine with layers, filters, and blend modes.
|
|
5
|
+
Author-email: Elena Andrea Müller <andstudies.contact@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Repository, https://github.com/sfyds/glowbyte
|
|
8
|
+
Project-URL: Homepage, https://andstudies.com/tools/glowbyte/
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: Pillow>=10.0
|
|
13
|
+
Requires-Dist: numpy>=1.24
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# GlowByte
|
|
17
|
+
|
|
18
|
+
A Python image composition engine with layers, filters, and blend modes.
|
|
19
|
+
|
|
20
|
+
#### Video Demo: https://andstudies.com/tools/glowbyte/glowbyte.mp4
|
|
21
|
+
|
|
22
|
+
#### Description
|
|
23
|
+
|
|
24
|
+
glowbyte is a Python package for programmatic photo editing. Instead of opening Photoshop or GIMP, you write code — stack layers, apply filters, set blend modes and opacity, and export the result.
|
|
25
|
+
|
|
26
|
+
The idea is simple: a canvas holds layers, each layer holds an image, and each layer can have its own position, size, opacity, blend mode, and effects. When you export, glowbyte composites everything together from bottom to top and writes the final image.
|
|
27
|
+
|
|
28
|
+
This makes glowbyte useful for automated image generation, social media templates, batch processing, data-driven graphics, and anyone who'd rather write Python than drag sliders. The inspiration came from my work on [PyFrame](https://github.com/sfyds/pyframe), a video composition engine — glowbyte is the image foundation that PyFrame will eventually build on.
|
|
29
|
+
|
|
30
|
+
## Features
|
|
31
|
+
|
|
32
|
+
- Layer-based composition system
|
|
33
|
+
- Image layers with position, size, and opacity
|
|
34
|
+
- Text layers with font, size, and color
|
|
35
|
+
- Solid color and gradient layers
|
|
36
|
+
- Blend modes (multiply, screen, overlay, soft light, etc.)
|
|
37
|
+
- Non-destructive filters (blur, sharpen, brightness, contrast, saturation, hue shift)
|
|
38
|
+
- Chroma key / green screen removal
|
|
39
|
+
- Resize, crop, and transform operations
|
|
40
|
+
- PNG and JPEG export
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
pip install glowbyte
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Or install from source:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
git clone https://github.com/sfyds/glowbyte.git
|
|
52
|
+
cd glowbyte
|
|
53
|
+
pip install -e .
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Usage
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
from glowbyte import Canvas, Layer
|
|
60
|
+
|
|
61
|
+
# create a canvas
|
|
62
|
+
canvas = Canvas(1920, 1080)
|
|
63
|
+
|
|
64
|
+
# add a background
|
|
65
|
+
bg = Layer.from_file("background.png")
|
|
66
|
+
canvas.add_layer(bg)
|
|
67
|
+
|
|
68
|
+
# add a photo with reduced opacity and a blend mode
|
|
69
|
+
photo = Layer.from_file("portrait.png", opacity=0.8, blend_mode="multiply")
|
|
70
|
+
photo.move(100, 50)
|
|
71
|
+
canvas.add_layer(photo)
|
|
72
|
+
|
|
73
|
+
# apply filters
|
|
74
|
+
photo.filter.brightness(1.2)
|
|
75
|
+
photo.filter.contrast(1.1)
|
|
76
|
+
photo.filter.blur(radius=2)
|
|
77
|
+
|
|
78
|
+
# add text
|
|
79
|
+
title = Layer.text("hello world", font_size=72, color="#ffffff")
|
|
80
|
+
title.move(200, 400)
|
|
81
|
+
canvas.add_layer(title)
|
|
82
|
+
|
|
83
|
+
# export
|
|
84
|
+
canvas.export("result.png")
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Project Structure
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
glowbyte/
|
|
91
|
+
glowbyte/
|
|
92
|
+
__init__.py
|
|
93
|
+
canvas.py
|
|
94
|
+
layer.py
|
|
95
|
+
filters.py
|
|
96
|
+
blend.py
|
|
97
|
+
text.py
|
|
98
|
+
renderer.py
|
|
99
|
+
export.py
|
|
100
|
+
examples/
|
|
101
|
+
basic_composite.py
|
|
102
|
+
text_overlay.py
|
|
103
|
+
blend_modes.py
|
|
104
|
+
batch_edit.py
|
|
105
|
+
tests/
|
|
106
|
+
test_canvas.py
|
|
107
|
+
test_layer.py
|
|
108
|
+
test_filters.py
|
|
109
|
+
test_blend.py
|
|
110
|
+
assets/
|
|
111
|
+
example_background.png
|
|
112
|
+
pyproject.toml
|
|
113
|
+
README.md
|
|
114
|
+
LICENSE
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## TODO
|
|
118
|
+
|
|
119
|
+
### Core
|
|
120
|
+
- [ ] Layer groups
|
|
121
|
+
- [ ] Layer masks
|
|
122
|
+
- [ ] Crop and trim
|
|
123
|
+
- [ ] Rotation and scaling transforms
|
|
124
|
+
- [ ] Undo/redo history
|
|
125
|
+
|
|
126
|
+
### Effects
|
|
127
|
+
- [ ] Drop shadow
|
|
128
|
+
- [ ] Stroke/outline
|
|
129
|
+
- [ ] Gradient maps
|
|
130
|
+
- [ ] Color overlay
|
|
131
|
+
- [ ] Noise generation
|
|
132
|
+
|
|
133
|
+
### Usability
|
|
134
|
+
- [ ] JSON scene format (load/save compositions)
|
|
135
|
+
- [ ] Batch processing CLI
|
|
136
|
+
- [ ] Better error messages
|
|
137
|
+
- [ ] More example scripts
|
|
138
|
+
|
|
139
|
+
### Long-Term
|
|
140
|
+
- [ ] Integration with PyFrame for video composition
|
|
141
|
+
- [ ] Plugin system for custom filters
|
|
142
|
+
- [ ] WebP and TIFF export
|
|
143
|
+
- [ ] Simple web preview interface
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
glowbyte/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
glowbyte-0.1.0.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
|
3
|
+
glowbyte-0.1.0.dist-info/METADATA,sha256=VSf2Hf8e5U9Ic3wsRf4MMsnaT6wUVMiOGnQ8f266YbI,3898
|
|
4
|
+
glowbyte-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
5
|
+
glowbyte-0.1.0.dist-info/top_level.txt,sha256=akvzvm8WXggKEhqluTQ8Ttnc-9Cs2WZcWekpjf-a0Es,9
|
|
6
|
+
glowbyte-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2018 The Python Packaging Authority
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
glowbyte
|