1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-12-09 09:56:01 +02:00
Commit Graph

1434 Commits

Author SHA1 Message Date
DarthSim
9b6074094a Fix return value from vips_resize_go 2023-06-06 21:09:42 +03:00
DarthSim
8629c5eca1 Bump version 2023-05-31 22:55:51 +03:00
DarthSim
b9e0134f2e Update changelog 2023-05-31 22:52:36 +03:00
DarthSim
597673b650 Fix changelog 2023-05-30 20:10:01 +03:00
DarthSim
ac87eea317 Update changelog and docs 2023-05-30 20:08:04 +03:00
DarthSim
b20b5ff768 Fix Photoshop metadata dump 2023-05-29 21:27:47 +03:00
DarthSim
2e6a3c6dd1 Separate Photoshop and IPTC metadata parsing/dumping 2023-05-29 19:48:39 +03:00
DarthSim
a246eda065 Ensure URL replacements are executed in the specified order 2023-05-28 19:59:51 +03:00
DarthSim
b3905c0cd3 Respond with 422 on error during image loading 2023-05-28 19:59:51 +03:00
Niklas Mollenhauer
524434b63f
Drop dependency + use built-in base64url (#1156)
* Drop dependency + use built-in `base64url`

[`create-hmac`](https://github.com/browserify/createHmac) is meant for compat between node and browser compat and was last updated in 2018.

Computing the HMAC signature on the client (browser) does not make any sense in 99% of the use-cases, as the secrets would be needed on the client side.
This means that we can drop browser support and just use the native node module, which is also exported by the `create-hmac` when running on node.

`Buffer.toString()` also accepts "base64url" as an encoding, so we can drop the `urlSafeBase64` in favor of that.

* Use encoder from hmac instance
2023-05-24 19:30:00 +06:00
DarthSim
5a7b6068c7 Update base Docker image 2023-05-23 19:10:05 +03:00
DarthSim
39c436e527 Preserve GIF bit-per-sample 2023-05-23 19:09:30 +03:00
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