DarthSim
157843ccb3
Use VIPS_META_BITS_PER_SAMPLE image header instead of palette-bit-depth when available
2023-05-23 19:08:35 +03:00
DarthSim
3048c30e1e
Cast to origin pixel format after premultiplication
2023-05-23 18:26:06 +03:00
DarthSim
ce24671ca0
Update NOTICE
2023-05-17 20:26:20 +03:00
DarthSim
219d37ee5b
Update base Docker image
2023-05-17 20:25:45 +03:00
DarthSim
aaaf1c706d
Normalize IMGPROXY_PATH_PREFIX and IMGPROXY_HEALTH_CHECK_PATH
2023-05-17 17:55:12 +03:00
DarthSim
aad0186b0a
Enable vector optimizations in vips
2023-05-17 13:42:30 +03:00
DarthSim
0ea06c88c2
Update base Docker image
2023-05-17 13:41:30 +03:00
DarthSim
bc5ca9a344
Add URL replacements
2023-05-15 20:15:12 +03:00
DarthSim
23dedc6de3
Fix GH link in docs
2023-05-14 15:31:58 +03:00
DarthSim
762c0add24
Dynamically fetch versions in docs
2023-05-13 22:56:39 +03:00
DarthSim
0d4aee3b30
Add links to website, Twitter, and Discord to docs
2023-05-13 18:47:37 +03:00
DarthSim
a58091002b
Use upstream docsify in docs
2023-05-13 18:47:09 +03:00
DarthSim
d17e0383ef
Update docs
2023-05-12 16:34:27 +03:00
Denis Surkov
9fe249d158
Fix typo in presets docs ( #1155 )
...
* Fix typo in presets docs
* fix typo x2
* fix typo x3
2023-05-12 19:25:51 +06:00
DarthSim
0250790910
Bump version
2023-05-10 19:54:19 +03:00
DarthSim
f288254505
Update deps
2023-05-10 19:53:21 +03:00
DarthSim
5f6cb64864
Add jemalloc and TCMalloc to Docker image
2023-05-10 19:22:34 +03:00
DarthSim
c781c699a6
Create fontconfig cache dir in Docker image
2023-05-10 18:30:15 +03:00
DarthSim
bdfd89737a
Update changelog
2023-05-10 18:10:25 +03:00
DarthSim
cd35b260d9
Update changelog
2023-05-10 17:50:49 +03:00
DarthSim
85f790fb4b
Optimize watermark application
2023-05-10 17:46:41 +03:00
Adomas Kizogian
e8952edbf7
allow acquiring s3 access credentials through role assumption ( #1152 )
...
* allow acquiring s3 access credentials through role assumption
* improve cross-account access docs
* Update docs/serving_files_from_s3.md
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
---------
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
2023-05-09 20:50:02 +06:00
DarthSim
fd4b5d30d1
Fix typo
2023-05-03 18:53:27 +03:00
DarthSim
ec963e84d0
Update changelog
2023-05-03 18:31:38 +03:00
DarthSim
640cb2c461
Add http_res_body_size to k6 script
2023-05-03 18:31:38 +03:00
Ewan Higgs
4944dfab30
Support Last-Modified response header and support If-Modified-Since request header. ( #1147 )
...
* Always return Last-Modified and support If-Modified-Since.
* IMGPROXY_USE_LAST_MODIFIED config setting.
IMGPROXY_USE_LAST_MODIFIED (default false) when enabled will return the
Last-Modified time of the upstream image and also allow the support of
the If-Modified-Since request header (returning a 304 if the image
hasn't been modified).
If-Modified-Since allows If-None-Match to take precedence.
* Fixes based on DarthSim's feedback.
1. Don't worry about nil maps.
2. Fix a test now that we use the config.LastModifiedEnabled (and move
it's location it he test file to a more sane place).
3. Update GCS transport code based on the refactoring of DarthSim.
In this iteration, we pull the Updated time from the GCS object attributes
and format them as a string. We then parse it in the notmodified module.
Seems a bit silly to do it this way. If we agree on the approach here,
then AWS and Azure can follow.
* Support azure, fs, s3, and swift.
* Grab the headers for If-Modified-Since and Last-Modified before parsing them.
* Add tests for last-modified for fs.
* Support Last-Modified being passed when streaming an upstream file.
* Tests for Last-Modified for GCS and Azure
* Support s3 and swift tests. Sadly fakes3 doesn't support Last-Modified
* Test against forked gofakes3
2023-05-03 21:21:46 +06:00
DarthSim
87faa5a07d
Use fork of github.com/johannesboyne/gofakes3
2023-05-02 18:49:55 +03:00
DarthSim
6d087712aa
Remove ctxreader. It didn't solve the problem it meant to solve but it adds unneeded complexity
2023-05-01 20:50:42 +03:00
DarthSim
a4c876fc6d
Add more metrics to OTel
2023-05-01 20:25:48 +03:00
DarthSim
f8ee5826c5
Optimize bufpool
2023-05-01 20:25:25 +03:00
DarthSim
6cff6d4a64
Exclude Go 1.18 from CI
2023-04-28 19:54:09 +03:00
DarthSim
2c1f232995
Require go 1.19
2023-04-28 19:51:42 +03:00
DarthSim
929dcd6630
Update GA in docs
2023-04-28 19:40:54 +03:00
DarthSim
6ae4dcd941
Simpler init of OTel gauges
2023-04-27 20:08:24 +03:00
DarthSim
2bdf868345
Update OTel semconv
2023-04-27 19:37:00 +03:00
DarthSim
e2987c21cc
Update deps
2023-04-27 19:14:00 +03:00
DarthSim
c0f9a2410f
Bump version
2023-04-26 18:30:01 +03:00
DarthSim
723666ea1a
Strip watermark meta and remove its palette depth
2023-04-26 18:24:20 +03:00
DarthSim
954378c0a6
Update changelog
2023-04-26 18:20:19 +03:00
DarthSim
a79495509a
Update changelog
2023-04-25 23:09:55 +03:00
DarthSim
0863734ff8
Don't extend if requested width or height is zero
2023-04-24 21:45:10 +03:00
DarthSim
1da86887d4
Fix max_bytes option
2023-04-19 17:20:32 +03:00
DarthSim
4fae754071
Fix crashes in cases where the max_bytes
processing option was used and image saving failed
2023-04-19 17:04:36 +03:00
DarthSim
41b9ebe927
Bump version
2023-04-18 19:42:47 +03:00
DarthSim
9b65b7257d
Apply dprScale after min width/height
2023-04-18 18:52:20 +03:00
DarthSim
c98752651a
Don't set Content-DPR header
2023-04-18 18:40:23 +03:00
DarthSim
85fb470704
Update changelog and docs
2023-04-18 18:29:42 +03:00
DarthSim
7d1f7c903a
Use RoundToEven when calculating offsets and watermark size
2023-04-16 21:09:48 +03:00
DarthSim
168f6f6043
Retry source image request if http connection was lost
2023-04-16 20:59:48 +03:00
DarthSim
2c28252966
Fix the way the dpr
processing option affects offsets and paddings
2023-04-16 20:56:17 +03:00