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.

相关推荐
布朗克1685 小时前
Go 入门到精通-15-错误处理
开发语言·python·golang·错误处理
北冥you鱼7 小时前
Go-Ethereum (Geth) 最佳实践:从部署到生产环境优化
开发语言·后端·golang
李燚1 天前
Eino devops 调试系统源码:GraphCompileCallback 怎么工作(第50篇-E36)
数据库·golang·agent·devops·graphql·aiagent·eino
名字还没想好☜1 天前
Go 内存逃逸分析:什么时候变量跑到堆上
开发语言·算法·性能优化·golang·go·内存逃逸
H Journey1 天前
web开发学习:html、css、js
前端·css·html·js
ttwuai1 天前
后台管理系统 RBAC 排障:隐藏菜单后接口为什么还能调用
golang
Wang's Blog1 天前
Go-Zero框架上手前奏2: 微服务核心要素 —— 拆分、通信与无状态设计
开发语言·微服务·golang
Generalzy2 天前
从本地 Demo 到生产级检索:Milvus 学习笔记(2)
golang·milvus
小高Baby@2 天前
单链表的删操作
数据结构·算法·golang
灯澜忆梦2 天前
Go语言圣经 #7_1 | 接口约定、类型、值,sort Interface,http.Handler
开发语言·golang