海报配置分享专用 issue
qbhy opened this issue · 3 comments
qbhy commented
海报配置分享专用 issue
qbhy commented
所需参数:
用户昵称、个性签名、头像、小程序码描述、小程序码、中间海报
{
"width": 640,
"height": 1034,
"backgroundColor": "#d04c44",
"blocks": [
{
"x": 25,
"y": 25,
"width": 590,
"height": 820,
"borderColor": "#ffe6c0",
"borderWidth": 2
},
{
"x": 0,
"y": 870,
"width": 640,
"height": 164,
"backgroundColor": "#fff"
},
{
"x": 67,
"y": 303,
"width": 506,
"height": 500,
"backgroundColor": "#fff"
}
],
"texts": [
{
"text": "{用户昵称}",
"x": 320,
"y": 187,
"fontSize": 18,
"lineHeight": 18,
"color": "#ffe6c0",
"width": 320,
"lineNum": 1,
"baseLine": "middle",
"textAlign": "center"
},
{
"text": "{个性签名}",
"x": 320,
"y": 225,
"fontSize": 20,
"lineHeight": 24,
"color": "#ffe6c0",
"width": 480,
"lineNum": 2,
"baseLine": "middle",
"textAlign": "center"
},
{
"text": "{小程序码描述}",
"x": 170,
"y": 923,
"fontSize": 18,
"color": "#999",
"width": 300,
"lineNum": 2,
"baseLine": "middle",
"zIndex": 8,
"lineHeight": 40
}
],
"images": [
{
"url": "{头像}",
"x": 270,
"y": 67,
"width": 100,
"height": 100,
"borderRadius": 100
},
{
"url": "{中间海报}",
"x": 87,
"y": 323,
"width": 466,
"height": 460
},
{
"url": "{小程序码}",
"x": 45,
"y": 905,
"width": 100,
"height": 100,
"zIndex": 9
}
],
"lines": []
}
qbhy commented
圣诞树背景海报
所需参数: 用户名、用户头像、小程序码
ps: logo 和 logo 文案可以自行更换
效果图如下:
{
"width": 640,
"height": 1200,
"debug": false,
"preload": true,
"backgroundColor": "#d04c44",
"blocks": [
{
"x": 128,
"y": 540,
"width": 384,
"height": 540,
"backgroundColor": "#fff",
"borderRadius": 13,
"zIndex": 2
}
],
"texts": [
{
"text": "{用户名}",
"x": 320,
"y": 693,
"fontSize": 22,
"lineHeight": 22,
"color": "#777",
"width": 320,
"lineNum": 1,
"baseLine": "middle",
"textAlign": "center",
"zIndex": 3
},
{
"text": "微信内长按识别小程序码",
"x": 320,
"y": 1030,
"fontSize": 18,
"lineHeight": 22,
"color": "#777",
"width": 320,
"lineNum": 1,
"baseLine": "middle",
"textAlign": "center",
"zIndex": 3
},
{
"text": "我的相册二维码",
"x": 320,
"y": 324,
"fontSize": 32,
"lineHeight": 32,
"color": "#fff",
"width": 320,
"lineNum": 1,
"baseLine": "middle",
"textAlign": "center",
"zIndex": 3
},
{
"text": "扫码免费一键转图",
"x": 320,
"y": 382,
"fontSize": 26,
"lineHeight": 26,
"color": "#ddd",
"width": 320,
"lineNum": 1,
"baseLine": "middle",
"textAlign": "center",
"zIndex": 3
}
],
"images": [
{
"url": "https://i.loli.net/2018/12/21/5c1c5d330db6f.jpg",
"x": 0,
"y": 0,
"width": 640,
"height": 1200,
"zIndex": 0
},
{
"url": "https://i.loli.net/2018/12/21/5c1c8c7de8fe9.jpg",
"x": 275,
"y": 178,
"width": 90,
"height": 90,
"zIndex": 10
},
{
"url": "{用户头像}",
"x": 275,
"y": 566,
"width": 90,
"height": 90,
"zIndex": 10
},
{
"url": "{小程序码}",
"x": 195,
"y": 737,
"width": 249,
"height": 249,
"zIndex": 10
}
],
"lines": []
}
qbhy commented
{
"width": 750,
"height": 750,
"backgroundColor": "#d04c44",
"blocks": [
{
"x": 128,
"y": 540,
"width": 384,
"height": 540,
"backgroundColor": "#fff",
"borderRadius": 13,
"zIndex": 2
}
],
"texts": [
{
"text": "坚持早起",
"x": 30,
"y": 190,
"fontSize": 22,
"lineHeight": 22,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "4",
"x": 30,
"y": 237,
"fontSize": 48,
"lineHeight": 22,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "天",
"x": 83,
"y": 257,
"fontSize": 22,
"lineHeight": 22,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "今日早起",
"x": 30,
"y": 320,
"fontSize": 24,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "10:58",
"x": 30,
"y": 366,
"fontSize": 52,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "1005650人正在参与",
"x": 30,
"y": 470,
"fontSize": 24,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "比 8% 的人起的早",
"x": 30,
"y": 505,
"fontSize": 24,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "坚强向上,方能靠近阳光向上,方能靠近阳光向上,方能",
"x": 30,
"y": 640,
"fontSize": 30,
"color": "#ffffff",
"width": 520,
"lineHeight": 35,
"lineNum": 2,
"textAlign": "left",
"zIndex": 3
},
{
"text": "扫码说早安",
"x": 620,
"y": 590,
"fontSize": 20,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "02",
"x": 638,
"y": 30,
"fontSize": 38,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
},
{
"text": "2021.04",
"x": 623,
"y": 71,
"fontSize": 15,
"color": "#ffffff",
"lineNum": 1,
"textAlign": "left",
"zIndex": 3
}
],
"images": [
{
"url": "https://qiniu.faxingxiuxiu.cn/class/morning/e6b04d7b24f4b94de15aac77652fc6ef.jpg",
"x": 0,
"y": 0,
"width": 750,
"height": 750,
"zIndex": 0
},
{
"url": "https://lsbk.oss-cn-zhangjiakou.aliyuncs.com/sample/WYe3FBTG.jpg",
"width": 100,
"height": 100,
"x": 32,
"y": 32,
"borderRadius": 100
},
{
"url": "qrcode",
"qrCode": true,
"width": 100,
"height": 100,
"x": 620,
"y": 620
}
],
"lines": []
}