Communitygithub.com

logo动画生成器

将任意Logo图片(PNG、JPG、WebP或SVG)一键转化为5秒动画Logo展示,包含五种风格(液态、霓虹、弹跳、透镜、升起),输出1080p60 MP4带音效、透明WebM(可选ProRes 4444 .mov)及关键帧图。

logo动画生成器 是什么?

该技能能将任意Logo图片(PNG、JPG、WebP或SVG)自动生成为5秒动画Logo展示,提供五种独特风格:液态、霓虹、弹跳、透镜和升起。每种风格都输出1080p60的MP4视频(含合成音效)、透明背景WebM(可选ProRes 4444 .mov供视频编辑软件使用)以及关键帧图。技能还支持添加双色文字标记、生成方形或竖版用于社交媒体,并可为特定Logo定制专属风格。用户只需提供Logo图片并表达动画需求(如“让我的Logo动起来”或输入“/generate-logo”),技能即可自动完成从分析、预览到最终渲染的全流程。技能基于Node.js、ffmpeg和Chrome浏览器,无需任何AI图像服务或素材库。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/chydevit/Skill-create-videos/tree/HEAD/plugins/logo-skills/skills/generate-logo

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

生成Logo动画

该技能可把Logo图片转化为5秒动画展示。每种风格都是一个画布场景,由无头Chrome逐帧渲染,ffmpeg编码帧画面,音效则根据场景事件(落地、弹出、闪烁)合成。不需要任何AI图像服务、素材库或样片。每种风格的最后一帧都是Logo文件本身的像素,因此动画不会“重绘”品牌形象。

要求:Node 22+、ffmpeg(libx264、libvpx-vp9、prores_ks)和Chrome或Chromium。如果Chrome不在标准路径下,请设置环境变量CHROME_PATH。

工作流程

1. 查找并查看Logo

找到用户所指的文件:检查当前工作目录、~/Downloads和~/Desktop,或直接询问用户。渲染前务必读取图片。注意Logo是否有透明或纯色背景、包含多少个独立形状、是否已有文字标记以及它的颜色。这些信息将决定哪种风格最合适。在检查预览时请牢记这些特征。

2. 确定需求,尽量使用默认值而非提问

默认输出为全部五种风格、1920×1080分辨率、60帧/秒、自动背景、MP4加透明WebM。仅当答案会改变输出且无法推理时再提问。例如,用户希望添加名称但你不确定确切拼写或颜色分割位置时。

用户需求选项
指定风格--styles liquid,neon
Instagram/正方形、TikTok/Reels/竖版--size square、--size vertical(或 --size 1280x720)
标记旁添加品牌名称`--text "Pharm
深色或浅色页面--bg dark、--bg light、--bg "#0b1e2d"(霓虹风格始终为深色)
Premiere/Final Cut 文件--prores(添加带Alpha通道的ProRes 4444 .mov大文件)

3. 先预览(只需数秒,而非数分钟)

<skill>/scripts/animate.sh "<logo>" --preview --out "<out-dir>" [options]

此命令将为每种风格生成<名称>-5s-<风格>-preview.png(每种风格10张静态图),以及两种以上风格时的<名称>-5s-overview.png和每个风格的-info.json文件。查看总览图并检查:

  • **抠图:**边缘干净,Logo内部无背景色或杂点。若背景已抠除(文件中无透明度),info.json中的keyedBackground会被设为true。
  • 分组:parts表示独立形状数量,textParts表示检测到的字母数量。霓虹闪烁、液态珠粒和弹跳下落等效果需要将字母识别为文本,才能将它们当作单词处理。
  • **构图:**未发生裁剪,尺寸正确。

如有问题,请参阅下面的“修复分析问题”。如果用户希望在完整渲染前发表意见,可将总览图展示给用户。

4. 渲染

<skill>/scripts/animate.sh "<logo>" --styles <列表> --out "<out-dir>" [options]

每种风格大约需要60-70秒(不透明和透明通道渲染及编码)。四种或更多风格时可在后台运行。每个风格的输出文件位于输出文件夹: <名称>-5s-<风格>.mp4(带音效)、-alpha.webm、-alpha.mov(使用--prores时)、-sfx.wav、-keyframes.png和-info.json。

5. 交付前检查

  • 查看每个-keyframes.png。最后一帧必须是清晰、完整的Logo。
  • 使用ffprobe确认时长5.000秒和尺寸。音效峰值已归一化至-3 dB。
  • 将MP4文件和总览图发送给用户(可用SendUserFile时),并以链接形式列出所有文件。提及透明版本,并以一行说明每种风格的作用。

6. 迭代调整

每种风格的定时参数位于scripts/styles/<风格>.mjs中的T对象内。所有其他定时参数都依赖于它,音效也会自动跟随,因此在此修改即可。如果五种风格无法满足需求,或者Logo的特定形状需要特殊动画,请编写新的风格。参考references/custom-style.md。

风格详解

完整细节在references/styles.md中;在为用户选择或解释每种风格时阅读它。

  • **液态(liquid):**一小滴Logo主色从页面落下,扩散成最大的形状。其他形状和字母像珠子一样挤出。最适合圆润、有机的Logo。
  • **霓虹(neon):**在深色页面上,发光管线勾勒每个形状,Logo伴随闪光亮起,字母像招牌一样闪烁点亮。非常深的形状会变为白色。
  • **弹跳(bounce):**大形状翻滚或滚入并像塑料一样弹跳,随后彩屑弹出,接着字母落入。充满趣味。
  • **透镜(lens):**放大镜在空白页面上滑过,Logo只在其镜片下显现。然后从主要形状处缩放推出。适合搜索、健康或洞察类品牌。
  • **升起(rise):**品牌色的细线打开成带状,形状从中升起。沉稳商务,适用于任何Logo。

修复分析问题

  • **JPG Logo周围出现光晕或背景残留:**背景是根据其边缘颜色抠除的。如果Logo接触到图像边缘,或位于渐变或照片背景上,请先将其导出为透明PNG再重新运行。
  • **白色细节消失(白色形状在白色背景上):**这是正确的抠图效果。如果需要显示这些白色部分,请使用透明PNG。
  • **字母未被识别为文本:**需要在主要形状旁边或下方有3个或更多高度相近的独立字母排成一行。连笔字或单个形状的文字标记被视为一个部件,在升起和透镜风格中动画效果依然正常。
  • **文字标记字体错误:**必须确保--font指定的字体已安装在机器上。使用fc-list检查,macOS上可查看/System/Library/Fonts。

制作定制风格

当用户有特殊需求时,例如“药片应该落入位置”或“放大镜应该扫描”,请阅读references/custom-style.md。其中涵盖了风格API、引擎助手、音效事件列表以及以往定制的Logo动画效果良好的技术。这些技术包括将标记重建为矢量形状、对照PNG检查重建结果,以及在最后移交真实像素。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

brand-loop

Make a seamless looping background video of glossy 3D liquid blobs in a brand's colours. Two colour families float slowly in zero gravity, each merging and pinching off like mercury, on a soft off-white studio backdrop with a warm gradient, faint ripple rings, soft drop shadows and shallow depth of field. It renders in Blender EEVEE at 4K 60 fps as H.264, HEVC 10-bit and 1080p, and the last frame flows into the first. Use it whenever the user wants a looping background, brand backdrop, abstract 3D or liquid loop, motion background for a website, stream, event screen or presentation, a "seamless loop", or a background for their logo or text, or types /brand-loop.

brand-promo

Make a ~50-second dark, kinetic studio showreel / promo video from a brand's own videos, its logo animation and a few lines of text. It has a typed intro, a ring of 3D cards, a glitchy title drop, and 3-5 spotlights (each work on a tilted card or a phone, playing its own sound). Then "Your story… next.", a 3D rush of clips, and the liquid logo reveal with the name, chips and website. It comes with an original synthesised score, narration (VoxCPM2, English or Khmer) and sound effects, as a 1080p60 MP4. Use it whenever the user wants a showreel, studio reel, portfolio video, agency or brand promo, "demo video" of their work, a promo like a template video, or a Khmer version of one, or types /brand-promo, even if they only hand over a few videos and a logo.

portfolio-reel

Make a ~30-second creator / freelancer / developer portfolio intro reel (1080p60 MP4) in one fixed, friendly motion-design style (template "skill 2"). A mustard-yellow gradient asks a hook question ("Looking for a … Video editor?"), a white circle wipes to a profile hero (round avatar, badge pill, "Hello, I'm …", roles split by bars, a black "Here's my work ↑" button). The page then scrolls through 1-4 work sections on light grey with window-light shadows, each a title plus 1-3 rounded cards playing the user's own clips or showing their pictures. A yellow light wipe brings two closing lines, then a black social profile card pops up with counting stats, a cursor clicks Follow (it turns into Following) and the card flips in 3D to its back. Two UIs: "classic" (the template) and "app" (a search bar that types the hook and opens a results dropdown, a bento dashboard of glass tiles, a carousel of browser and phone mockups, a chat screen for the closing lines, and a profile card with a co...

saas-promo

Make a kinetic SaaS / startup / product / developer promo video (1080p60 MP4) in one fixed, fast motion-design style: an ~11-second teaser, or a ~50-second version with chapters (one per product or project) cut on the beat of the user's own song. It opens with glyph flashes and purple/lime neon shapes, then types a word with a cursor while a 3D swirl of your screenshots orbits it. Cards slide onto a painted meadow and build a bento wall with words typing inside them, and the camera zooms into a card. A glowing gradient orb then reveals the headline word by word, and a glitch drops into a long-exposure flower on a blue-to-orange sky with flying symbols and "From … / To …". Every frame is drawn in code, with typing, whoosh, riser and impact sound effects and a synthesised ambient bed or your own song (its tempo and drop are measured, so every cut lands on the beat), mixed to -14 LUFS. English or Khmer. Use it whenever the user wants a SaaS promo, product or app teaser, a developer or...

相关技能