Ryan Robson commited on
Commit
4441340
·
1 Parent(s): b89094a

Add inverted logo for better visibility

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. invert_logo.py +29 -0
  3. logo-inverted.png +3 -0
README.md CHANGED
@@ -11,7 +11,7 @@ license: mit
11
  # Robworks Software - AI Innovation Lab
12
 
13
  <div align="center">
14
- <img src="logo.png" alt="Robworks Software Logo" width="300"/>
15
 
16
  **Transforming Education Through Technology**
17
 
 
11
  # Robworks Software - AI Innovation Lab
12
 
13
  <div align="center">
14
+ <img src="logo-inverted.png" alt="Robworks Software Logo" width="300"/>
15
 
16
  **Transforming Education Through Technology**
17
 
invert_logo.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from PIL import Image, ImageOps
2
+ import numpy as np
3
+
4
+ # Open the logo
5
+ img = Image.open('logo.png')
6
+
7
+ # Convert to RGBA if not already
8
+ img = img.convert('RGBA')
9
+
10
+ # Get the data
11
+ data = np.array(img)
12
+
13
+ # Separate RGB and Alpha channels
14
+ rgb = data[:, :, :3]
15
+ alpha = data[:, :, 3]
16
+
17
+ # Invert RGB channels (255 - value)
18
+ inverted_rgb = 255 - rgb
19
+
20
+ # Combine inverted RGB with original alpha
21
+ inverted_data = np.dstack((inverted_rgb, alpha))
22
+
23
+ # Create new image
24
+ inverted_img = Image.fromarray(inverted_data.astype('uint8'), 'RGBA')
25
+
26
+ # Save the inverted logo
27
+ inverted_img.save('logo-inverted.png')
28
+
29
+ print("Logo colors inverted successfully! Saved as logo-inverted.png")
logo-inverted.png ADDED

Git LFS Details

  • SHA256: 5a3d48b14ce92606b9e2ed7800a0080daaa020be5be6f3248a28efe534c807a7
  • Pointer size: 131 Bytes
  • Size of remote file: 288 kB