...
 
Commits (6)
    https://gitcode.net/psoho/fast-poster/-/commit/29cb73f36c994de4c9c333d85e7bfcd80fd239c2 v2.16.0 - 更新文档 2023-07-26T21:20:57+08:00 thomas thomastangweixin@163.com https://gitcode.net/psoho/fast-poster/-/commit/1d939b41787b9555b93c403341da06b853b2dce2 v2.17.0 - 更新文档 2023-08-11T12:26:35+08:00 thomas thomastangweixin@163.com docker使用fastposter https://gitcode.net/psoho/fast-poster/-/commit/904e6db87158990e4af766341a4c0fd3c4103097 v2.17.0 - 更新文档 2023-08-11T12:27:40+08:00 thomas thomastangweixin@163.com docker使用fastposter https://gitcode.net/psoho/fast-poster/-/commit/fe9a452f692a0fe7283afdc7eb1f5f57b8a85164 v2.17.0 - 更新文档 2023-09-06T13:15:14+08:00 thomas thomastangweixin@163.com - 规范docker命名使用fastposter - 增加支持GO-SDK客户端调用 https://gitcode.net/psoho/fast-poster/-/commit/6c08d83df1690801d6cf70369f67df9bc15e06c3 v2.17.0 - 更新文档 2023-09-06T13:16:14+08:00 thomas thomastangweixin@163.com - 规范docker命名使用fastposter - 增加支持GO-SDK客户端调用 https://gitcode.net/psoho/fast-poster/-/commit/4b85755a886ee06435f292d94388eb8aa008938a v2.17.0 - 更新文档 2023-09-15T19:11:14+08:00 thomas thomastangweixin@163.com - 规范docker命名使用fastposter - 增加支持GO-SDK客户端调用 - 更新英文文档
<p align="center"><a href="https://poster.prodapi.cn/doc/" target="_blank"><img width="120" src="https://fastposter.net/dassets/dragonfly2x.png" alt="fast-poster logo"></a></p>
<p align="center"><a href="https://fastposter.net/doc/" target="_blank"><img width="168" src="https://fastposter.net/dassets/dragonfly2x.png" alt="fast-poster logo"></a></p>
<p align="center">
<a href="https://github.com/psoho/fast-poster" class="link github-link" target="_blank"><img style="max-width: 100px;" alt="GitHub Repo stars" src="https://img.shields.io/github/stars/psoho/fast-poster? style=social"></a>
<a href="https://gitee.com/psoho/fast-poster" class="link gitee-link" target="_blank"><img style="max-width: 100px;" alt="gitee Repo stars" src="https://gitee.com/psoho/fast-poster/badge/star.svg"></a>
<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.16.0-brightgreen" >
<a href="https://github.com/psoho/fast-poster" class="link github-link" target="_blank"><img style="max-width: 100px;" alt="GitHub Repo stars" src="https://img.shields.io/github/stars/psoho/fast-poster?style=social"></a>
<a href="https://gitee.com/psoho/fast-poster" class="link gitee-link" target="_blank"><img style="max-width: 100px;" alt="gitee Repo stars" src="https://gitee.com/psoho/fast-poster/badge/star.svg"></a>
<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.17.0-brightgreen">
</p>
## Introduction
🔥🔥🔥 fastposter Generator is a quick poster development tool. Just upload a background image, put the components (' text ', 'picture', 'QR code', 'avatar') in the corresponding position to generate a poster. Click 'code' to directly generate a variety of language call code, convenient for rapid development.
Fastposter is a rapid poster development tool that allows you to quickly create posters. Simply upload a background image and place components (`text`, `image`, `QR code`, `avatar`) in the desired positions to generate a poster. Click the `Code` button to directly generate SDK calling code in various languages, making development fast and easy.
Now it has served a large number of e-commerce projects, many of which have `60W+` users. It has passed the test of production environment for many years and is stable and reliable. Widely used in all kinds of e-commerce, distribution systems, e-commerce posters, e-commerce main picture and other poster generation and production scenes.
It has served numerous e-commerce projects, with over `60,000` users across multiple projects. Tested in production environments over the years, it's proven to be stable and reliable. It is widely used in various e-commerce, distribution systems, e-commerce posters, e-commerce main images, and other poster generation and production scenarios.
> Thank you very much for your encouragement, donation and support. Open source is not easy, I hope I can stick to it.
> If this project has been helpful to you, please give it a star.
## Document
## Documentation
- development documentation: [https://poster.prodapi.cn/doc/](https://poster.prodapi.cn/doc/)
- online experience: [https://poster.prodapi.cn/](https://poster.prodapi.cn/#from=2.16.0)
- ProPython: [https://poster.prodapi.cn/pro/](https://poster.prodapi.cn/pro/#from=2.16.0)
- ProJava: [https://poster.prodapi.cn/pro/java/](https://poster.prodapi.cn/pro/java/#from=2.16.0)
> The little star you lit is accelerating the project development iteration
- Developer Documentation: [https://fastposter.net/doc/](https://fastposter.net/doc/)
- Java Professional Version - Online Experience: [https://fastposter.net/demo/java/](https://fastposter.net/demo/java/)
- Python Professional Version - Online Experience: [https://fastposter.net/demo/python/](https://fastposter.net/demo/python/)
- Community Version - Online Experience: [https://fastposter.net/demo/open/](https://fastposter.net/demo/open/)
- 🔥🔥Cloud Service - Free Trial: [https://fastposter.net/](https://fastposter.net/)
## Features
- Supports docker rapid deployment
- Support e-commerce production environment
- Support for multiple programming languages' Java ', 'Python', 'PHP', 'Golang', 'JavaScript', 'mini programs'
- No need to write complex drawing rendering code
- Very low server resource overhead
- Support for multiple file formats: jpeg, png, webp, pdf, base64
- Easy code generation
- Provide common components' text ' 'avatar' 'picture' 'two-dimensional code'
- Supports fast Docker deployment.
- Supports production-level e-commerce environments.
- Supports popular SDKs for quick development in `Java`, `Python`, `PHP`, `Go`, `JavaScript`, `mini-program`.
- No need to write complex rendering code.
- Supports multiple file formats: `jpeg`, `png`, `webp`, `pdf`, `base64`.
- Convenient code generation.
## Quick Start
## Getting Started
1. Start the service
### Step 1: Start the Service
```bash
docker run -it --name fast-poster -p 5000:5000 tangweixin/fast-poster
docker run -it --name fastposter -p 5000:5000 fastposter/fastposter
```
2. Edit the poster
### Step 2: Edit the Poster
![fastposter edit posters](https://fastposter.net/dassets/image-20220407142530149.png?v=2.16.0)
![image-20230726174142177](https://fastposter.net/dassets/image-20230726174142177.png)
3. Generate code
### Step 3: Generate Code
![fastposter generated code](https://fastposter.net/dassets/image-20220407142705928.png?v=2.16.0)
![image-20230726174208989](https://fastposter.net/dassets/image-20230726174208989.png)
Sample request (you can pass the required parameters directly)
```bash
curl --location --request POST 'https://poster.prodapi.cn/api/link' \
--header 'Content-Type: application/json' \
--header 'token: ApfrIzxCoK1DwNZOEJCwlrnv6QZ0PCdv' \
--data-raw '{
"title": Artificial Intelligence + Machine learning,
"id": 2
} '
```
Request Example (parameters can be passed directly):
Sample response (Return the poster's access address)
```java
// 1. Create a poster client object
FastposterClient client = FastposterClient.builder()
.endpoint("http://127.0.0.1:5000") // Set the access endpoint
.token("ApfrIzxCoK1DwNZOEJCwlrnv6QZ0PCdv") // Set the token
.build();
```json
{
"code": 0,
"msg": "success",
"data": {
"url": "https://poster.prodapi.cn/v/90295c118d4c8802"
}
}
// 2. Prepare poster parameters
Map<String, Object> params = new HashMap<>();
params.put("name", "Test Text");
// 3. Generate and save the poster
client.buildPoster("80058c79d1e2e617").params(params).build().save("demo.png");
```
## Application scenario
<img width=300 src="https://fastposter.net/dassets/demo.png" />
## Use Cases
- Poster Generator
- Poster generator
- Automatic poster generation tool
- Poster online design generator
- Poster generator made online
- Generate a circle of Friends poster
- Online poster design and generation
- Online poster maker
- Generate Moments (WeChat) posters
- E-commerce poster editor
- Certificate Making
- Certificate creation
- Automatic certificate generation tool
- QR code to share poster pictures
- Python Pillow drawing Pillow makes posters
- E-commerce main chart editor
- Java generates QR code to share poster pictures
- Java Graphics2D draws the poster picture
- wechat mini program to generate posters to share moments
- PHP generates a two-dimensional code poster image
- Custom commercial poster images
-H5 Generates poster images
- canvas Generates poster images
- Generate poster images via JSON
- BufferdImage Draws pictures
- QR code sharing poster images
- Create posters using Python Pillow
- E-commerce main image editor
- Generate QR code sharing posters using Java
- Create posters with Java Graphics2D
- Generate WeChat mini-program share posters
- Generate QR code posters using PHP
- Custom business poster images
- Generate HTML5 posters
- Create posters using HTML5 Canvas
- Generate posters using JSON data for batch production
- Draw images using BufferedImage
## Community
The author of wechat 'fastposter'
Author's WeChat: `fastposter`
![Author's WeChat](https://fastposter.net/dassets/qrcode.jpeg)
![fastposer author WeChat](https://fastposter.net/dassets/qrcode.jpeg)
\ No newline at end of file
<p align="center"><a href="https://poster.prodapi.cn/doc/" target="_blank"><img width="168" src="https://fastposter.net/dassets/dragonfly2x.png" alt="fast-poster logo"></a></p>
<p align="center"><a href="https://fastposter.net/doc/" target="_blank"><img width="168" src="https://fastposter.net/dassets/dragonfly2x.png" alt="fast-poster logo"></a></p>
<p align="center">
<a href="https://github.com/psoho/fast-poster" class="link github-link" target="_blank"><img style="max-width: 100px;" alt="GitHub Repo stars" src="https://img.shields.io/github/stars/psoho/fast-poster?style=social"></a>
......@@ -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.16.0-brightgreen">
<img alt="version" src="https://img.shields.io/badge/version-2.17.0-brightgreen">
</p>
## 介绍
......@@ -40,7 +40,7 @@ fastposter海报生成器是一款快速开发海报的工具。只需上传一
### 一、启动服务
```bash
docker run -it --name fast-poster -p 5000:5000 tangweixin/fast-poster
docker run -it --name fastposter -p 5000:5000 fastposter/fastposter
```
### 二、编辑海报
......@@ -69,7 +69,7 @@ params.put("name", "测试文本");
client.buildPoster("80058c79d1e2e617").params(params).build().save("demo.png");
```
响应示例(返回海报的访问地址
响应示例(返回海报图片二进制流
<img width=300 src="https://fastposter.net/dassets/demo.png" />
......
......@@ -20,7 +20,7 @@ class BaseHandler(RequestHandler):
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.16.0')
self.set_header('fastposter', 'fastposter/v2.17.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')
......@@ -213,7 +213,7 @@ if __name__ == "__main__":
|_| \__,_||___/ \__|| .__/ \___/ |___/ \__| \___||_|
| |
|_|
fastposter(v2.16.0)
fastposter(v2.17.0)
https://fastposter.net/doc/
'''
PORT = 5000
......
<!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.16.0): 震撼来袭...')</script><link href=js/about.eb687494.js rel=prefetch><link href=css/app.9c10ffb0.css rel=preload as=style><link href=css/chunk-vendors.87d3b6c6.css rel=preload as=style><link href=js/app.aead1e65.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.9c10ffb0.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.aead1e65.js></script></body></html>
\ No newline at end of file
<!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.17.0): 震撼来袭...')</script><link href=js/about.eb687494.js rel=prefetch><link href=css/app.742ff3ff.css rel=preload as=style><link href=css/chunk-vendors.87d3b6c6.css rel=preload as=style><link href=js/app.a45846f9.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.742ff3ff.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.a45846f9.js></script></body></html>
\ No newline at end of file
此差异已折叠。
此差异已折叠。