Update README and SPEC

This commit is contained in:
n0vad3v 2020-03-01 21:25:13 +08:00
parent 590d02d2c1
commit cb1b48647c
No known key found for this signature in database
GPG Key ID: 8D42A0E699E50639
2 changed files with 16 additions and 6 deletions

View File

@ -3,8 +3,6 @@
</p>
<img src="https://api.travis-ci.org/webp-sh/webp_server_go.svg?branch=master"/>
**THIS PROJECT IS UNDER DEVELOPMENT, DON'T USE IT ON PRODUCTION ENVIRONMENT.**
After the [n0vad3v/webp_server](https://github.com/n0vad3v/webp_server), I decide to rewrite the whole program with Go, as there will be no more `npm install`s or `docker-compose`s.
This is a Server based on Golang, which allows you to serve WebP images on the fly.
@ -86,7 +84,7 @@ location ^~ /wp-content/uploads/ {
## Build your own binaries
Install latest version of golang, enable go module, clone the repo, and then...
```shell script
go build webp-server.go
make
```
**Due to the limitations of webp module, you can't cross compile this tool.
But the binary will work instantly on your platform and arch**
@ -96,4 +94,16 @@ But the binary will work instantly on your platform and arch**
- [ ] Multi platform support.
- [x] A better way to supervise the program.
- [ ] Get rid of render-blocking effect on first render.
- [x] Prefetch on server initialization.
- [x] Prefetch on server initialization.
## Related Articles(In chronological order)
* [让站点图片加载速度更快——引入 WebP Server 无缝转换图片为 WebP](https://nova.moe/re-introduce-webp-server/)
* [记 Golang 下遇到的一回「毫无由头」的内存更改](https://await.moe/2020/02/note-about-encountered-memory-changes-for-no-reason-in-golang/)
* [WebP Server in Rust](https://await.moe/2020/02/webp-server-in-rust/)
* [个人网站无缝切换图片到 webp](https://www.bennythink.com/flying-webp.html)
## License
WebP Server is under the GPLv3. See the [LICENSE](./LICENSE) file for details.

View File

@ -1,11 +1,11 @@
Name: webp-server
Version: 0.0.2
Version: 0.0.3
Release: 1%{?dist}
Summary: Go version of WebP Server. A tool that will serve your JPG/PNGs as WebP format with compression, on-the-fly.
License: GPLv3
Source0: webp-server
URL: https://github.com/n0vad3v/webp_server_go
URL: https://github.com/webp-sh/webp_server_go
%description
Go version of WebP Server. A tool that will serve your JPG/PNGs as WebP format with compression, on-the-fly.