33 Commits

Author SHA1 Message Date
Benny~
ca8aacd73d
systemd service file update, close #27
* remove capabilities: older kernel doesn't support
* remove reload: we don't support.
2020-03-12 19:33:13 +08:00
Benny~
e2e39e0690
add check for invalid img path 2020-03-07 13:09:58 +08:00
n0vad3v
ff0ec84d82
optimize log 2020-03-07 13:09:32 +08:00
n0vad3v
7bdd0812f6
Added custom log level with -v.
Fix bug caused by hard code of exhaust path.
Bump version to 0.1.1.
2020-03-06 21:06:32 +08:00
n0vad3v
e861578606
Bump to 0.1.0.
Update README.
2020-03-05 21:12:09 +08:00
Benny~
d5f7977d97
merge incident 2020-03-05 20:05:05 +08:00
Benny~
3aa872e0ff
resolve conflict, close PR #21 2020-03-04 22:06:24 +08:00
Nova Kwok
e6ba6d4045
Merge pull request #19 from webp-sh/autoUpdate
auto update in background
2020-03-04 21:02:03 +08:00
Benny~
579be00b41
split functions to different files. Build and run, please use package mode, example:
`go run .`
`go build .`
`go run . --prefetch`
2020-03-04 20:14:45 +08:00
Benny~
f65a3ed70e
auto update 2020-03-04 19:51:55 +08:00
n0vad3v
9e6f648cc4
Push README.md
Bump version.
2020-03-03 20:52:42 +08:00
Benny~
04ea19331c
prefetch in background 2020-03-03 19:56:00 +08:00
Benny~
f4a1bad454
prefetch custom cores, -jobs=3 2020-03-03 19:50:06 +08:00
Benny~
c0f5368319
dump systemd and config.json
Param:
dump-config
dump-systemd
2020-03-03 19:37:57 +08:00
Benny~
102cba7f4f
add bmp and gif support.
gif support is not perfect, need animated webp
2020-03-03 19:26:48 +08:00
Benny~
954a55adbe
add backward compatibility to exhaust path 2020-03-02 21:38:55 +08:00
Nova Kwok
95183ab1c3
Added custom exhaust path. (#16)
* Added custom exhaust path.
Bump to 0.0.4.

* Fix typo
2020-03-02 21:17:44 +08:00
Benny~
590d02d2c1
755 for non-root 2020-03-01 19:33:18 +08:00
Benny~
062b9dcf69
safari & 644 perm 2020-03-01 16:15:19 +08:00
Benny~
a9dd261702
fix extension check 2020-03-01 15:33:54 +08:00
Nova Kwok
e6070cf783
fix progress bar while utilize all the CPUs we have, fix #8 2020-02-29 22:57:18 +08:00
Benny~
7152cae868
Lossless: false 2020-02-29 18:39:00 +08:00
Benny~
ec5796d170
prefetch is finish. resolve #5.
Waiting for nova to test and merge to master
2020-02-29 18:39:00 +08:00
Benny~
9a933544be
go-style 2020-02-26 20:21:24 +08:00
Benny~
83a0aa420c
fix issue #4, add err return for webpEncoder 2020-02-26 20:13:52 +08:00
Nova Kwok
95b4443c13
Merge pull request #2 from BlueCocoa/master
Generate new WebP image if original file is modified since last time
2020-02-26 10:37:14 +08:00
Cocoa
25d46611f1
Copy ImgName before invoke c.SendFile since stripTrailingSlashes in fasthttp will change the content of ctx.URI().Path(), which was once obtained as ImgPath := c.Path()
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-02-26 02:04:50 +08:00
Cocoa
735b7d2cda
check the original image for existence before os.Stat
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-02-26 00:50:19 +08:00
n0vad3v
087e39d1ea
Optimize on function.
Update README.
2020-02-26 00:17:29 +08:00
Benny~
f790b24a0b
better file type 2020-02-25 22:20:26 +08:00
Cocoa
2b40d844a4
fixed typo in glob pattern, - -> .
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-02-25 20:56:26 +08:00
Cocoa
61b46a1d8e
generate new webp image if original file is modified since last time
Signed-off-by: Cocoa <0xbbc@0xbbc.com>
2020-02-25 20:50:29 +08:00
n0vad3v
8bdffcc246
Change from webp_server to webp-server.
Update RPM Spec.
2020-02-25 14:47:19 +08:00