-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_pillow.py
More file actions
30 lines (24 loc) · 856 Bytes
/
check_pillow.py
File metadata and controls
30 lines (24 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from PIL import Image, features
import os
def check_pillow():
print("=== Pillow Configuration ===")
print(f"Pillow Version: {Image.__version__}")
print("\nSupported Features:")
supported_features = features.get_supported_features()
for feature in supported_features:
print(f"✓ {feature}")
print("\nSupported Formats:")
for format in sorted(Image.SAVE.keys()):
print(f"✓ {format}")
print("\nSystem Libraries:")
libraries = {
'libjpeg': 'JPEG',
'libwebp': 'WEBP',
'libpng': 'PNG'
}
for lib, format_name in libraries.items():
path = f"/data/data/com.termux/files/usr/lib/{lib}.so"
status = "Found" if os.path.exists(path) else "Missing"
print(f"{format_name}: {status} ({lib})")
if __name__ == '__main__':
check_pillow()