15 Commits

Author SHA1 Message Date
Nova Kwok
543af2415f
Better configuration (#288)
* Better config

* print to log

* Upgrade golang.org/x/net

* Tidy go mods

* export WebpConfig

* Add TestConvertRawToJPG

* Add TestConvertRawToJPG

* Update Integration Tests UA

* Add README for supporting NEF

---------

Co-authored-by: Benny <benny.think@gmail.com>
2023-11-05 18:34:04 +08:00
Nova Kwok
655fb1dcca
Add env on startup (#283)
* Add READ_BUFFER_SIZE, CONCURRENCY,DISABLE_KEEPALIVE to ENV

* Add TestGuessSupportedFormat
2023-10-17 16:41:01 +02:00
Nova Kwok
5d265dce33
Parse flat before load config (#275)
* Parse flat before load config

* Bump version to 0.9.11
2023-09-15 14:13:30 +08:00
Nova Kwok
6790ddda46
Add support for Go 1.21, bump version, optimize code (#264) 2023-08-09 22:49:40 +08:00
BugFest
4003b03022
Multiple backends support (#207)
* Fix: h2non/filetype upgraded to support avif signatures

* Fix: make clean updated to include test/output dirs

* Feature: multi-backend support via IMG_MAP config key as described in #217

* feat: implement both local and remote (proxyMode) mappings for multi-backend

* Feature: multi-backend support via IMG_MAP config key as described in #217

* fix: go-is-svg should be direct import

* fix: imgMap paths are relative to CWD

* feature: IMG_MAP is parsed on start

---------

Co-authored-by: Nova Kwok <n0vad3v@riseup.net>
2023-08-02 23:33:54 +08:00
Nova Kwok
cd0a83a596
Update README and config.json (#260) 2023-07-21 15:41:26 +08:00
Nova Kwok
a7b9e90fab
Add SVG support for proxy mode (#258)
* Add SVG support

* Bump version
2023-07-21 15:35:30 +08:00
Benny
5f6c7cce1e
better reduction effect loop and bump (#256)
* better reduction effect loop and bump

* Bump version

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-07-19 10:10:21 +08:00
Nova Kwok
b988668893
Better ReductionEffort (#255)
* Better ReductionEffort

* Bump version
2023-07-18 23:17:34 +08:00
Nova Kwok
24b96a901b
ReductionEffort to 0 (#254) 2023-07-18 16:16:14 +08:00
Benny
a7b5992662
Metadata (#251)
* recover middleware

* simplify Atoi

* metadata data prototype

* InterestingAttention

* resize itself

* Bump version to 0.9.4
Added some comments
Removed String() for Extraparams

* Add metadata test

* Fix CI

* Remove unnecessary tests

* Update file count

* use t.Run to get test case

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-07-11 19:08:32 +02:00
Nova Kwok
a5e3282ea1
Move matcher to outside to avoid fatal error: concurrent map read and map write (#250)
* Move matcher to outside to avoid fatal error: concurrent map read and map write

* Bump to 0.9.3
2023-07-06 22:16:24 +08:00
Nova Kwok
fdca7eac0f
Bump to 0.9.2 (#247) 2023-07-05 16:01:29 +08:00
Benny
13281d929b
add some tests (#239)
* add some tests

* remove template

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-07-03 17:01:13 +08:00
Benny
23bbed8ce6
Refactor review (#220)
* runnable

* convert is working

* some refactoring

* update go.mod

* fix some TODOs

* add TODO

* update go mod

* rebase onto master

* fix #234

2: 5.9s - 7.6MB
4: 26s - 6.9MB

* fix malloc tests

* fix malloc tests

* remote TODO

* add X-Real-IP #236

* Better localRawImagePath

* remove some wrong comments

* Bump version to 0.9.0

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-06-27 15:43:43 +02:00