mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-19 16:01:57 +09:00
[Docs] (.claude/skills, .github/workflows, CMakeLists.txt, docs/archive, docs/Disaggregated, docs/MobileVA, docs/Performance, MG_Backend, MG_Backend/DirectGLES, MG_Backend/DirectVulkan, MG_Backend/Record, MG_Gbm, MG_Impl, MG_Impl/EGLImpl, MG_Impl/GLImpl, MG_Impl/GLXImpl, MG_Impl/Pipe, MG_IntegrationTest, MG_IntegrationTest/Harness, MG_IntegrationTest/Scenarios, MG_Pipe, MG_Pipe/generated, MG_Remote, MG_Remote/Client, MG_Remote/Server, MG_Remote/Transport, MG_Remote/Wire, MG_State/GLState, MG_Test/Pipe, MG_Test/Util, MG_Test/Wire, MobileGL, scripts, scripts/data, tools/device_bench, userguide): archive the planning notes and agent contracts under docs/archive
- DEBTS.md and OPEN-QUESTIONS.md stay maintained, now in docs/Disaggregated.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python3
|
||||
"""thumbs.py <out.png> <png>...: a side-by-side strip of 540p-high thumbnails with labels."""
|
||||
import sys
|
||||
from PIL import Image, ImageDraw
|
||||
out, files = sys.argv[1], sys.argv[2:]
|
||||
thumbs = []
|
||||
for f in files:
|
||||
im = Image.open(f).convert("RGB")
|
||||
h = 540
|
||||
w = max(1, im.width * h // im.height)
|
||||
t = im.resize((w, h))
|
||||
ImageDraw.Draw(t).text((8, 8), f.split("/")[-1], fill=(255, 0, 255))
|
||||
thumbs.append(t)
|
||||
strip = Image.new("RGB", (sum(t.width for t in thumbs) + 8 * (len(thumbs) - 1), 540), (40, 40, 40))
|
||||
x = 0
|
||||
for t in thumbs:
|
||||
strip.paste(t, (x, 0))
|
||||
x += t.width + 8
|
||||
strip.save(out)
|
||||
print(out, strip.size)
|
||||
Reference in New Issue
Block a user