Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/SOF-7438 feat: media creation nb #200

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
update: optimize
  • Loading branch information
VsevolodX committed Jan 10, 2025
commit a678e9b18c86e071804b6bf281e41377525ca163
15 changes: 9 additions & 6 deletions other/media_generation/gif_creation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,25 @@
"\n",
"# Text Overlay Settings\n",
"FONT_SIZE = 16\n",
"WHITE_COLOR = (255, 255, 255)\n",
"BLACK_COLOR = (0, 0, 0)\n",
"FONT_NAME = \"lucida-grande\"\n",
"TEXT_OVERLAYS = [\n",
" {\n",
" \"text\": \"Material ABC\",\n",
" \"position\": (10, GIF_SIZE - 10 - FONT_SIZE), # Bottom left\n",
" \"font\": \"lucida-grande\", # Will fallback to default if not found\n",
" \"color\": (255, 255, 255), # White\n",
" \"font\": FONT_NAME,\n",
" \"color\": WHITE_COLOR,\n",
" \"stroke_width\": 2,\n",
" \"stroke_fill\": (0, 0, 0) # Black outline\n",
" \"stroke_fill\": BLACK_COLOR\n",
" },\n",
" {\n",
" \"text\": \"Available in our materials bank\",\n",
" \"position\": (GIF_SIZE//2 + 50, GIF_SIZE - 10 - FONT_SIZE), # Bottom right\n",
" \"font\": \"lucida-grande\",\n",
" \"color\": (255, 255, 255),\n",
" \"font\": FONT_NAME,\n",
" \"color\": WHITE_COLOR,\n",
" \"stroke_width\": 2,\n",
" \"stroke_fill\": (0, 0, 0)\n",
" \"stroke_fill\": BLACK_COLOR\n",
" }\n",
"]\n"
],
Expand Down
Loading