20 Commits

Author SHA1 Message Date
Nova Kwok
43c275e3ec
Adds JPEG XL support, max_height/max_width support (#321)
* WIP JXL

* Fix test

* Tries to fix autobuild

* Tries to fix autobuild

* Add setup go in codeql

* Bump actions version

* Do not print curl output in CI

* Do not print curl output in CI

* Remove Metadata on RAW image

* Update sample config

* better loop

* Prefetch should also respect AllowedType

* Better Export params and UA handle

* Only do conversion on supported formats

* CONVERT_TYPES default to webp only

* CONVERT_TYPES default to webp only

* Add GIF to AllowedTypes

* Update README
2024-03-22 15:12:09 +08:00
HolgerHuo
123c96dde7
add: cache for remote images (#310)
* add: cache for remote image requests

* update: use default expiration for NoExpiration setting

* update: clean code

* fix: do not save empty etag

* fix: panic during type assertion
2024-02-11 10:55:23 +08:00
Nova Kwok
4f39a1c0b4
Unify ENV (#289) 2023-11-05 19:16:44 +08:00
Nova Kwok
d9da7f3cd3
Remove metadata when original not exist, update support for heic (#266)
* Remove metadata when original not exist, update support for heic

* Warnf to Warnln
2023-08-17 12:30:53 +02: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
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
Nova Kwok
2c0dd15222
Now we support animated GIF images (#232)
* Now we support animated GIF images

* Fix CI

* Update runtime image
2023-06-15 15:28:59 +08:00
Nova Kwok
bcb3f1452b
Support extra parameters on request (#192)
* version 1

* some update

* Fix ST1020

* Remove ST1020

* Fix CI

* Fix params

* Fix order

* Allow reqURIwithQuery pass through when proxy mode

* Fix bugs

* Extract resizeImage

* Check for err
2023-05-15 20:13:00 +08:00
n0vad3v
5e1ede1585
Update config.json and README.md 2021-12-12 20:47:23 +08:00
Benny
08c333f3cd
Fiber v2, code format, typo,test case, go 1.15 and more (#54)
* upgrade to fiber v2

* code format

* remove redundant variables
* remove useless exportable variables/functions

* go mod replace

use our own mirror now.

* add test case for converter, use deferInit to make test more simple

* remove useless file and fix typo

* Makefile change
* upgrade to go 1.15
* remove wrong go test comments

* complete test case, coverage, coverage badge

* Fix version typo

* config struct fix

* add banner, show version, add server header, remove fiber startup message

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2020-11-21 13:26:03 +08:00
Benny
c0509bb50f
upgrade logrus and fix safari ua 2020-05-22 17:16:10 +08:00
n0vad3v
db8f60e7ab
Drop PPC support.
Fix config.json.
2020-03-07 13:48:30 +08:00
Benny~
6b266e8fb7
remove gif support, send not allowed ext file #25
because it's not perfect
2020-03-07 13:09:36 +08:00
n0vad3v
9e6f648cc4
Push README.md
Bump version.
2020-03-03 20:52:42 +08:00
Benny~
8c6b8922f2
update README.md for cli param 2020-03-03 20:31:14 +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
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
n0vad3v
6b5f1e6e92
Init 2020-02-09 12:21:51 +08:00