Skip to content

Commit

Permalink
v2.12.0
Browse files Browse the repository at this point in the history
- 二维码、头像支持固定高宽比
- 升级Pillow到9.4.0
- 增加v1/build/poster接口,直接返回生成的图片
- 增加小程序演示地址
  • Loading branch information
tangweixin committed Feb 23, 2023
1 parent 58c9f08 commit d9ff6ad
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img alt="csharp" src="https://img.shields.io/badge/language-python-yellow.svg">
<img alt="csharp" src="https://img.shields.io/badge/language-vue-brightgreen.svg">
<img alt="license" src="https://img.shields.io/badge/license-MIT-blue.svg">
<img Alt = "version" SRC = "https://img.shields.io/badge/version-2.11.0-brightgreen" >
<img Alt = "version" SRC = "https://img.shields.io/badge/version-2.12.0-brightgreen" >
</p>

## Introduction
Expand All @@ -20,9 +20,9 @@ Now it has served a large number of e-commerce projects, many of which have '52W
## Document

- development documentation: [https://poster.prodapi.cn/doc/](https://poster.prodapi.cn/doc/)
- online experience: [https://poster.prodapi.cn/](https://poster.prodapi.cn/#from=2.11.0)
- ProPython: [https://poster.prodapi.cn/pro/](https://poster.prodapi.cn/pro/#from=2.11.0)
- ProJava: [https://poster.prodapi.cn/pro/java/](https://poster.prodapi.cn/pro/java/#from=2.11.0)
- online experience: [https://poster.prodapi.cn/](https://poster.prodapi.cn/#from=2.12.0)
- ProPython: [https://poster.prodapi.cn/pro/](https://poster.prodapi.cn/pro/#from=2.12.0)
- ProJava: [https://poster.prodapi.cn/pro/java/](https://poster.prodapi.cn/pro/java/#from=2.12.0)

> The little star you lit is accelerating the project development iteration
Expand All @@ -48,12 +48,12 @@ docker run -it --name fast-poster -p 5000:5000 tangweixin/fast-poster

2. Edit the poster

![fastposter edit posters](https://poster.prodapi.cn/doc/assets/image-20220407142530149.png?v=2.11.0)
![fastposter edit posters](https://poster.prodapi.cn/doc/assets/image-20220407142530149.png?v=2.12.0)


3. Generate code

![fastposter generated code](https://poster.prodapi.cn/doc/assets/image-20220407142705928.png?v=2.11.0)
![fastposter generated code](https://poster.prodapi.cn/doc/assets/image-20220407142705928.png?v=2.12.0)

Sample request (you can pass the required parameters directly)

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img alt="csharp" src="https://img.shields.io/badge/language-python-yellow.svg">
<img alt="csharp" src="https://img.shields.io/badge/language-vue-brightgreen.svg">
<img alt="license" src="https://img.shields.io/badge/license-MIT-blue.svg">
<img alt="version" src="https://img.shields.io/badge/version-2.11.0-brightgreen">
<img alt="version" src="https://img.shields.io/badge/version-2.12.0-brightgreen">
</p>

## 介绍
Expand All @@ -20,9 +20,9 @@
## 文档

- 开发文档:[https://poster.prodapi.cn/doc/](https://poster.prodapi.cn/doc/)
- 在线体验:[https://poster.prodapi.cn/](https://poster.prodapi.cn/#from=2.11.0)
- 专业版-Python:[https://poster.prodapi.cn/pro/](https://poster.prodapi.cn/pro/#from=2.11.0)
- 专业版-Java:[https://poster.prodapi.cn/pro/java/](https://poster.prodapi.cn/pro/java/#from=2.11.0)
- 在线体验:[https://poster.prodapi.cn/](https://poster.prodapi.cn/#from=2.12.0)
- 专业版-Python:[https://poster.prodapi.cn/pro/](https://poster.prodapi.cn/pro/#from=2.12.0)
- 专业版-Java:[https://poster.prodapi.cn/pro/java/](https://poster.prodapi.cn/pro/java/#from=2.12.0)

> 你点亮的小星星,正在加速项目开发迭代
Expand All @@ -48,12 +48,12 @@ docker run -it --name fast-poster -p 5000:5000 tangweixin/fast-poster

### 二、编辑海报

![fastposter编辑海报](https://poster.prodapi.cn/doc/assets/image-20220407142530149.png?v=2.11.0)
![fastposter编辑海报](https://poster.prodapi.cn/doc/assets/image-20220407142530149.png?v=2.12.0)


### 三、生成代码

![fastposter生成代码](https://poster.prodapi.cn/doc/assets/image-20220407142705928.png?v=2.11.0)
![fastposter生成代码](https://poster.prodapi.cn/doc/assets/image-20220407142705928.png?v=2.12.0)

请求示例(可直接传递需要的参数)

Expand Down
2 changes: 1 addition & 1 deletion server/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def set_default_headers(self) -> None:
origin_url = self.request.headers.get('Origin')
if not origin_url: origin_url = '*'
self.set_header('Access-Control-Allow-Methods', 'POST, PUT, DELETE, GET, OPTIONS')
self.set_header('fastposter', 'fastposter/v2.11.0')
self.set_header('fastposter', 'fastposter/v2.12.0')
self.set_header('Access-Control-Allow-Credentials', 'true')
self.set_header('Access-Control-Allow-Origin', origin_url)
self.set_header('Access-Control-Allow-Headers', 'x-requested-with,token,Content-type')
Expand Down
2 changes: 1 addition & 1 deletion server/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=static/font/iconfont.css><title>fastposter海报生成器</title><meta name=keywords content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 低代码海报生成器 在线作图 Java生成二维码分享海报图片 海报生成器在线制作 在线海报生成器 免费海报一键生成器 海报在线生成 Poster在线制作"><meta name=description content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 fastposter低代码海报生成器 Java Graphics2D绘制海报图片 通过JSON生成海报图片 程序员的海报设计器 一款程序员的海报生成器 python生成海报 java生成海报 免费海报一键生成器"><script>var _hmt = _hmt || [];(function () {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?666f29845ed43fbcd0282a91cb281b83";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script><script>var baseURI = "/";if (baseURI === '/') {baseURI = (location.protocol + '//' + location.host + location.pathname).replace(/(.+\/).*$/, '$1')}; window.API_URL = baseURI; window.PREVIEW_URL = baseURI + 'api/preview'; window.UPLOAD_URL = baseURI + 'api/upload';console.info('fastposter(2.11.0): 震撼来袭...')</script><script src=https://poster.prodapi.cn/static/js/app.9e57fcda.js></script><link href=js/about.eb687494.js rel=prefetch><link href=css/app.d9914c2c.css rel=preload as=style><link href=css/chunk-vendors.87d3b6c6.css rel=preload as=style><link href=js/app.0f82a9db.js rel=preload as=script><link href=js/chunk-vendors.d3f19a59.js rel=preload as=script><link href=css/chunk-vendors.87d3b6c6.css rel=stylesheet><link href=css/app.d9914c2c.css rel=stylesheet></head><body><noscript><strong>请开启JS支持</strong></noscript><div id=app></div><script src=js/chunk-vendors.d3f19a59.js></script><script src=js/app.0f82a9db.js></script></body><link rel=stylesheet href=https://poster.prodapi.cn/static/css/app.7373ae34.css></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=static/font/iconfont.css><title>fastposter海报生成器</title><meta name=keywords content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 低代码海报生成器 在线作图 Java生成二维码分享海报图片 海报生成器在线制作 在线海报生成器 免费海报一键生成器 海报在线生成 Poster在线制作"><meta name=description content="fastposter海报生成器 电商海报编辑器 电商海报设计器器 二维码推广海报 fastposter低代码海报生成器 Java Graphics2D绘制海报图片 通过JSON生成海报图片 程序员的海报设计器 一款程序员的海报生成器 python生成海报 java生成海报 免费海报一键生成器"><script>var _hmt = _hmt || [];(function () {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?666f29845ed43fbcd0282a91cb281b83";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script><script>var baseURI = "/";if (baseURI === '/') {baseURI = (location.protocol + '//' + location.host + location.pathname).replace(/(.+\/).*$/, '$1')}; window.API_URL = baseURI; window.PREVIEW_URL = baseURI + 'api/preview'; window.UPLOAD_URL = baseURI + 'api/upload';console.info('fastposter(2.12.0): 震撼来袭...')</script><script src=https://poster.prodapi.cn/static/js/app.9e57fcda.js></script><link href=js/about.eb687494.js rel=prefetch><link href=css/app.d9914c2c.css rel=preload as=style><link href=css/chunk-vendors.87d3b6c6.css rel=preload as=style><link href=js/app.0f82a9db.js rel=preload as=script><link href=js/chunk-vendors.d3f19a59.js rel=preload as=script><link href=css/chunk-vendors.87d3b6c6.css rel=stylesheet><link href=css/app.d9914c2c.css rel=stylesheet></head><body><noscript><strong>请开启JS支持</strong></noscript><div id=app></div><script src=js/chunk-vendors.d3f19a59.js></script><script src=js/app.0f82a9db.js></script></body><link rel=stylesheet href=https://poster.prodapi.cn/static/css/app.7373ae34.css></html>

0 comments on commit d9ff6ad

Please sign in to comment.