返回顶部
h

horse-sticker-maker马年贴纸制作

Create and deploy a festive Chinese New Year (Year of the Horse 2026) animated GIF sticker maker web app. Use when the user wants to generate custom horse-themed blessing stickers, deploy a sticker generator H5 page, or create WeChat-compatible animated GIF stickers with gold horse animation on red background. Supports custom text input, 6-frame gold horse galloping animation, Canvas-based client-side GIF rendering via gif.js, and Vercel deployment.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
723
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

horse-sticker-maker

骏马贴纸生成器

生成一个可创建2026年马年春节自定义动画GIF贴纸的网页应用。

功能说明

  • - 用户输入自定义祝福文字(1-8个字符)
  • 客户端Canvas渲染240px动画GIF,包含:
- 红色渐变背景配金色闪光粒子 - 6帧金色骏马奔跑动画(透明PNG) - 顶部用户自定义金色书法文字 - 底部立马加薪文字带颜色循环效果
  • - 输出兼容微信贴纸(≤500KB,240px)

快速开始

  1. 1. 复制模板项目:
bash cp -r /assets/horse-blessing-template ./horse-blessing cd horse-blessing npm install
  1. 2. 本地运行:
bash npm run dev # 打开 http://localhost:3000/sticker
  1. 3. 部署到Vercel:
bash vercel --prod --yes

项目结构

horse-blessing/
├── app/
│ ├── page.tsx # 主页面(AI生成祝福语配诗)
│ ├── sticker/page.tsx # 贴纸制作器(Canvas GIF生成器)
│ ├── api/generate/ # AI作诗+图片生成API
│ ├── api/sticker/ # 贴纸API
│ └── layout.tsx # 根布局(红色主题)
├── public/
│ ├── horse-frame-[1-6].png # 6帧透明金色骏马
│ ├── horse-transparent.png # 静态骏马备用图
│ └── gif.worker.js # gif.js web worker
├── package.json
└── tailwind.config.ts

关键技术细节

GIF生成(客户端)

  • - 使用通过CDN加载的gif.js(Script from next/script)
  • 18帧(6帧骏马×3个循环),每帧延迟85ms
  • Canvas尺寸:240×240px,兼容微信贴纸
  • 骏马帧作为Image元素加载,通过drawImage绘制

骏马帧资源

  • - 6个透明PNG帧,位于public/horse-frame-[1-6].png
  • 通过AI图像模型生成,使用sharp去除背景
  • 去除技术:R>210、G>210、B>210的像素→alpha=0

自定义点

  • - 底部文字:编辑sticker/page.tsx中的立马加薪
  • GIF尺寸:修改const size = 240(微信保持≤240)
  • 帧数:修改const frames = 18
  • 骏马图片:替换public/horse-frame-*.png
  • 背景:修改径向渐变颜色
  • 闪光数量:调整闪光数组大小(默认30)

微信贴纸兼容性

  • - 最大文件大小500KB
  • 推荐最大尺寸240px
  • 需要GIF格式
  • 保存→微信聊天→表情面板→+→从相册选择

依赖项

json
{
next: ^14.0.0,
react: ^18.2.0,
react-dom: ^18.2.0,
sharp: latest,
gif-encoder-2: ^1.0.5,
html2canvas-pro: ^1.6.7
}

外部CDN:gif.js@0.2.0(运行时加载,用于客户端GIF编码)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 horse-sticker-maker-1776420054 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 horse-sticker-maker-1776420054 技能

通过命令行安装

skillhub install horse-sticker-maker-1776420054

下载

⬇ 下载 horse-sticker-maker v1.0.0(免费)

文件大小: 21.62 KB | 发布时间: 2026-4-17 19:44

v1.0.0 最新 2026-4-17 19:44
Initial release: 6-frame gold horse animated GIF sticker maker for Chinese New Year 2026

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部