313 Commits

Author SHA1 Message Date
dependabot[bot]
55c04d2d9e
Bump github.com/gofiber/fiber/v2 from 2.52.0 to 2.52.1 (#315)
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.52.0 to 2.52.1.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.52.0...v2.52.1)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 13:14:21 +08:00
Nova Kwok
eb2b6d16c5
Bump govips to 2.14 (#317) 2024-02-26 16:23:08 +08:00
dependabot[bot]
c92156177a
Bump github.com/valyala/fasthttp from 1.51.0 to 1.52.0 (#314)
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.51.0 to 1.52.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.51.0...v1.52.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-20 12:03:23 +08:00
Nova Kwok
9be1a6b1ed
Fix tests, bump version (#312) 2024-02-11 05:04:19 +01: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
12d4cc1a0b
Upgrade to Go 1.22 (#311) 2024-02-10 10:00:40 +01:00
dependabot[bot]
0dc7a0f0e1
Bump github.com/gofiber/fiber/v2 from 2.51.0 to 2.52.0 (#309)
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.51.0 to 2.52.0.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.51.0...v2.52.0)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-10 15:37:54 +08:00
Nova Kwok
1ec981b1fb
Read all pages (#308)
* Read all pages

* Bump to 0.10.6
2023-12-29 21:24:56 +08:00
Nova Kwok
d35e0e0d0b
Lock on convert (#307)
* Lock on convert

* Fix typo

* Should use debug for convert lock

* Bump to 0.10.5
2023-12-29 19:38:05 +08:00
Nova Kwok
484c876e86
Bump to 0.10.4 (#304) 2023-12-18 15:36:29 +08:00
Nova Kwok
d83f6667cc
Refine convert part (#303)
* Refine convert part

* Only open image once

* More refine
2023-12-16 20:12:42 +01:00
Nova Kwok
c771160a05
Ignore GIF when converting to AVIF (#302)
* Ignore GIF when converting to AVIF

* Allow WebP as source
2023-12-01 20:26:27 +08:00
Nova Kwok
d67601af66
Fix link in README.md and fix CI permission (#299) 2023-11-24 08:32:03 +01:00
HolgerHuo
0d4856c4b1
fix: metadata not updated when remote file changes (#297) 2023-11-23 16:38:50 +08:00
Nova Kwok
cc26be0f1d
Add healthz endpoint (#296) 2023-11-23 15:40:29 +08:00
dependabot[bot]
84bd4c63ed
Bump github.com/schollz/progressbar/v3 from 3.13.1 to 3.14.1 (#291)
Bumps [github.com/schollz/progressbar/v3](https://github.com/schollz/progressbar) from 3.13.1 to 3.14.1.
- [Release notes](https://github.com/schollz/progressbar/releases)
- [Commits](https://github.com/schollz/progressbar/compare/v3.13.1...v3.14.1)

---
updated-dependencies:
- dependency-name: github.com/schollz/progressbar/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 21:35:37 +08:00
HolgerHuo
290b23355a
fix: incorrect cache key (#286) 2023-11-22 21:30:14 +08:00
dependabot[bot]
d7d4c37e44
Bump github.com/valyala/fasthttp from 1.50.0 to 1.51.0 (#293)
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.50.0 to 1.51.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.50.0...v1.51.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 20:43:18 +08:00
dependabot[bot]
cd0b87cb1a
Bump github.com/gofiber/fiber/v2 from 2.50.0 to 2.51.0 (#294)
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.50.0 to 2.51.0.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.50.0...v2.51.0)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 20:42:57 +08:00
dependabot[bot]
ace56428b4
Bump golang.org/x/image from 0.5.0 to 0.10.0 (#290)
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.5.0 to 0.10.0.
- [Commits](https://github.com/golang/image/compare/v0.5.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-11 15:15:32 +08:00
Nova Kwok
4f39a1c0b4
Unify ENV (#289) 2023-11-05 19:16:44 +08:00
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
4a90b18a63
Fix bug that could remove original image (#287)
* Fix bug that could remove original image

* Refine notice
2023-11-04 22:22:56 +08:00
Langel
d98740cfea
ISSUE-281 Add NEF support by convert to jpg (#284)
Co-authored-by: Langel <llanc@qq.com>
2023-10-30 21:03:38 +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
0b0e5b1216
Upgrade github.com/gofiber/fiber (#278) 2023-09-18 14:35:54 +02:00
Nova Kwok
51dde5e5b8
Remove ARMv7 (#277) 2023-09-15 10:02:54 +02:00
Nova Kwok
c54b8bea36
Use compiled libwebp (#276) 2023-09-15 14:14:00 +08: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
Benny
523294e6d1
fix image exist nil (#274)
#272
2023-09-15 12:01:26 +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
Nova Kwok
ab4373263d
apt update before apt install (#265)
* apt update before apt install

* Fix sudo
2023-08-09 23:07:25 +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
5dba6bba15
M1 should be arm64 (#263) 2023-07-29 20:09:29 +08:00
Nova Kwok
9250d6f607
Optimize README.md (#262)
* Optimize README.md

* Update link
2023-07-26 15:01:13 +08:00
Nova Kwok
8ca36607ec
Add blog URL (#261) 2023-07-24 16:35:44 +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
773424ca01
Split codecov and CI check (#249) 2023-07-06 14:49:10 +02:00
Benny
3699c4991f
fix code cov (#248) 2023-07-06 08:23:46 +08:00
dependabot[bot]
debb31d2cd
Bump github.com/gofiber/fiber/v2 from 2.46.0 to 2.47.0 (#238)
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.46.0 to 2.47.0.
- [Release notes](https://github.com/gofiber/fiber/releases)
- [Commits](https://github.com/gofiber/fiber/compare/v2.46.0...v2.47.0)

---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 21:39:42 +02:00
Nova Kwok
fdca7eac0f
Bump to 0.9.2 (#247) 2023-07-05 16:01:29 +08:00
Nova Kwok
8d0ecdf4e0
Use QEMU to release ARM64 binary as well (#246) 2023-07-05 15:30:44 +08:00
Benny
a2585463ad
build binary using centos 7 (#245)
fix #236
2023-07-05 10:42:21 +08:00