Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Add breathing room around the README demo video

Gabriele Lozupone06dc2e65a456
diff --git a/README.md b/README.md
index c39dfbc..17ff412 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@
<a href="docs/engineering-notes.md">How it works</a>
</p>
-https://github.com/user-attachments/assets/dda8d4a4-8b7e-45ef-b2a8-65dfd23ef686
+https://github.com/user-attachments/assets/ceaf29e5-ee36-4727-bf95-db98e14b654d
<p align="center">
<a href="https://github.com/GabrieleLozupone/kokon/releases/latest"><picture>
diff --git a/scripts/readme/make_demo_gif.py b/scripts/readme/make_demo_gif.py
index 354afa3..57abd31 100644
--- a/scripts/readme/make_demo_gif.py
+++ b/scripts/readme/make_demo_gif.py
@@ -30,9 +30,10 @@ RECORDINGS = {
],
}
# docs/media/demo.mp4: the "pasta" recording zoomed onto the app window (same timing),
-# with black margins around it that are cropped away.
+# with black margins around it that are cropped away; then padded in the app's background
+# colour so the UI does not touch the edges of GitHub's video player.
RECORDINGS["demo"] = RECORDINGS["pasta"]
-CROPS = {"demo": "crop=1304:994:460:78,"}
+CROPS = {"demo": "crop=1304:994:460:78,pad=1464:1134:80:70:color=0x161616,"}
NAME = sys.argv[3] if len(sys.argv) > 3 else "demo"
SEGMENTS, CROP = RECORDINGS[NAME], CROPS.get(NAME, "")