p5r预告信生成器API

p5r预告信生成器API

本人将js生成的p5r预告信使用go语言进行了重写和部署,并开放了其api,可以直接通过get方法获取预告信的png。

快速开始

http://api.viogami.tech/p5cc/:text

eg:
http://api.viogami.tech/p5cc/persona5

感谢p5r风格字体的制作者预告信样式的制作者

使用了golang的gg库进行绘图。提供了GET方法和POST方法。GET使用动态路由直接生成,POST参数示例如下:

yaml 复制代码
text: "persona5"
fontSize: 120    # 字体大小
gutter : 10      # 字体间距
padding : 240     # 文字边距
textAlign: center  # 文字对齐方式
showLogo: true     # 是否显示Logo
logoScale: 1.0     # Logo缩放比例
logoOffset: 240     # Logo偏移量
showWtm: ""     # 水印文字,为空则不显示

字体暂时不可更改,默认使用了 HarmonyOSSansSC-Bold.ttf

Credits

Persona 5 © ATLUS. © SEGA.

This repositories`s cord forks from p5cc

Assets:

  • Persona 5 Calling Card Base by Elmind.
  • Persona 5 Style Text Generator by @LzxHahaha. Ported and modified by sorae42.
  • Persona 5 Logo and Assets by ALTUS.

All assets are all under fair use.

Credits can also be seen on the website along with links to the original site and owners, at the bottom of the page.

相关推荐
FfHUCisI2 小时前
Golang 网络轮询器 netpoll:把阻塞 IO 变成事件通知
开发语言·网络·golang
李迟3 小时前
Golang实践录:工程框架实践:搭建工程模板
开发语言·后端·golang
FfHUCisI5 小时前
Golang 函数调用的瞬间:栈帧、拷贝栈与逃逸分析
开发语言·后端·golang
王的宝库5 小时前
Gin 框架实战
golang·gin
嘿嘿-6617 小时前
Windows 一键使用 GPT-6 Astra:Codex CLI 配置教程
java·人工智能·windows·gpt·chatgpt·web
techdashen1 天前
Go Map 详解:键值对实际上是如何存储的
开发语言·后端·golang
嘿嘿-661 天前
gpt-6-astra测试,测试你的模型有没有降智
人工智能·gpt·chatgpt·web
cui_ruicheng1 天前
FastAPI 应用开发(二):请求响应、Pydantic 模型与依赖注入
python·fastapi·web
ttwuai1 天前
Go 后台初始化 MySQL 脚本失败怎么办?先查 DDL 还是生成配置
开发语言·mysql·golang
名字还没想好☜1 天前
Go 的 TCP 粘包与拆包:用长度前缀协议 + bufio 正确读消息
后端·tcp/ip·golang·go·php