Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Rebase/v3.2.1 #24

Merged
merged 142 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
23dedc6
Fix GH link in docs
DarthSim May 14, 2023
bc5ca9a
Add URL replacements
DarthSim May 15, 2023
0ea06c8
Update base Docker image
DarthSim May 17, 2023
aad0186
Enable vector optimizations in vips
DarthSim May 17, 2023
aaaf1c7
Normalize IMGPROXY_PATH_PREFIX and IMGPROXY_HEALTH_CHECK_PATH
DarthSim May 17, 2023
219d37e
Update base Docker image
DarthSim May 17, 2023
ce24671
Update NOTICE
DarthSim May 17, 2023
3048c30
Cast to origin pixel format after premultiplication
DarthSim May 23, 2023
157843c
Use VIPS_META_BITS_PER_SAMPLE image header instead of palette-bit-dep…
DarthSim May 23, 2023
39c436e
Preserve GIF bit-per-sample
DarthSim May 23, 2023
5a7b606
Update base Docker image
DarthSim May 23, 2023
524434b
Drop dependency + use built-in `base64url` (#1156)
nikeee May 24, 2023
b3905c0
Respond with 422 on error during image loading
DarthSim May 28, 2023
a246eda
Ensure URL replacements are executed in the specified order
DarthSim May 28, 2023
2e6a3c6
Separate Photoshop and IPTC metadata parsing/dumping
DarthSim May 29, 2023
b20b5ff
Fix Photoshop metadata dump
DarthSim May 29, 2023
ac87eea
Update changelog and docs
DarthSim May 30, 2023
597673b
Fix changelog
DarthSim May 30, 2023
b9e0134
Update changelog
DarthSim May 31, 2023
8629c5e
Bump version
DarthSim May 31, 2023
9b60740
Fix return value from vips_resize_go
DarthSim Jun 6, 2023
8227592
Optimize bufpool
DarthSim Jun 12, 2023
56b294c
Update docs
DarthSim Jun 17, 2023
9175c66
Update maximum and default AVIF speed
DarthSim Jun 29, 2023
9c1a3be
Update changelog
DarthSim Jun 29, 2023
d094b57
Update base Docker image
DarthSim Jun 29, 2023
1dacb3b
Bump version
DarthSim Jun 29, 2023
2459741
Unsharpening => unsharp masking in docs
DarthSim Jun 30, 2023
136a5d0
Fix saving to JPEG when using linear colorspace
DarthSim Jul 2, 2023
4e4b9ed
Exclude twitter.com from check-links git hook
DarthSim Jul 2, 2023
4de9b83
fix(svg/sanitize): preserve headers from origin data
tufitko Jun 22, 2023
5f3d551
Preserve headers in svg.FixUnsupported
DarthSim Jul 4, 2023
9306378
Add svg package tests
DarthSim Jul 4, 2023
523f3a6
Clone headers in the svg package
DarthSim Jul 4, 2023
94c9598
Update changelog
DarthSim Jul 4, 2023
271b153
Update testdata/test1.svg
DarthSim Jul 4, 2023
3265bfa
Update changelog
DarthSim Jul 12, 2023
d9ad1ae
Update base Docker image
DarthSim Jul 13, 2023
d9bc546
Bump version
DarthSim Jul 13, 2023
94492e8
Don't report `context cancelled` errors to metrics collectors
DarthSim Jul 19, 2023
fd2566a
Fix IMGPROXY_CACHE_CONTROL_PASSTHROUGH + IMGPROXY_FALLBACK_IMAGE_TTL …
DarthSim Jul 25, 2023
35dcf5a
Update changelog
DarthSim Aug 1, 2023
a020a76
Fix reporting image loading errors
DarthSim Aug 1, 2023
3557fa2
Add S3 multi-region mode
DarthSim Aug 2, 2023
64fc31f
Update changelog
DarthSim Aug 2, 2023
1d210dd
Add Clojure signature example
apeckham Jun 25, 2023
417a53d
Fix missing character in java example
apeckham Jun 25, 2023
e976424
Create FUNDING.yml
DarthSim Aug 11, 2023
e172b14
[docs] Add anchors for configs on the configuration page
DarthSim Aug 15, 2023
07e34a4
Rename concurrency to workers
DarthSim Aug 15, 2023
3b3720f
Fix typo in cloud_watch.md
PhantomRay Aug 6, 2023
93b1dc5
Load env variables from env files or secrets
DarthSim Feb 28, 2023
2832aab
Update docs style
DarthSim Aug 16, 2023
74f15dd
[docs] Add sponsor button
DarthSim Aug 16, 2023
4752195
[docs] Better copy code button
DarthSim Aug 16, 2023
ee25c32
[docs] Update pro badge, h2 and blockquote styles
DarthSim Aug 17, 2023
f87ce66
Update docs and changelog
DarthSim Aug 17, 2023
9604323
[docs] Update pro badge style
DarthSim Aug 20, 2023
f0b9c05
Update base Docker image
DarthSim Aug 21, 2023
925dac2
Create and destroy a tiny image during health check to check that vip…
DarthSim Aug 21, 2023
57dee90
Update deps
DarthSim Aug 21, 2023
551fe77
Bump version
DarthSim Aug 21, 2023
353329f
Update base Docker image
DarthSim Aug 22, 2023
e235374
Fix build on FreeBSD
DarthSim Aug 25, 2023
bf9e546
Fix parsing of HEIF files with large boxes
DarthSim Aug 30, 2023
46e6346
Remove ICC if source image is linear
DarthSim Aug 30, 2023
4e1d556
Fix float TIFF opacity and linear BW TIFF colors
DarthSim Aug 30, 2023
7111083
Use clang-format style in C files
DarthSim Aug 30, 2023
8d26bf5
Update base Docker image
DarthSim Sep 5, 2023
890b4e3
Limit vector image sizes to IMGPROXY_MAX_SRC_RESOLUTION
DarthSim Sep 5, 2023
1db4320
Update changelog
DarthSim Sep 6, 2023
128b3c6
Update vips.c
mbanusic Sep 7, 2023
b4ee0ce
Merge pull request #1200 from mbanusic/patch-1
DarthSim Sep 7, 2023
756958d
Fix crashes during processing of large animated WebPs
DarthSim Sep 8, 2023
1cd344c
Use clang-format style in vips/vips.c
DarthSim Sep 8, 2023
d52c005
Update changelog and docs
DarthSim Sep 12, 2023
7cc77ca
CI: Update docker image and Go versions
DarthSim Sep 12, 2023
4c82ec2
Better detect image loading errors
DarthSim Sep 14, 2023
f404e3d
Update changelog
DarthSim Sep 20, 2023
ef77940
Fix parsing byte TIFF tags
DarthSim Sep 30, 2023
9e6a66d
Update CI Docker image
DarthSim Oct 3, 2023
c18503a
Fix env in CI Docker image
DarthSim Oct 3, 2023
337a687
properly set env in CI
DarthSim Oct 3, 2023
337d062
Update docs and CHANGELOG
DarthSim Oct 4, 2023
a289420
Update base Docker image
DarthSim Oct 5, 2023
aa1f3aa
Update deps
DarthSim Oct 5, 2023
dc86a5e
Fix vips_allocs OTel metric unit
DarthSim Oct 5, 2023
56922a1
Update deps
DarthSim Oct 5, 2023
cd22bee
Bump version
DarthSim Oct 9, 2023
c200fc2
Update docs and CHANGELOG
DarthSim Oct 16, 2023
6d511a8
Add warning about signature to docs
DarthSim Oct 22, 2023
fb64124
Update loading_environment_variables.md
okliv Oct 22, 2023
5ac7947
Update base Docker image
DarthSim Oct 25, 2023
78af338
Create signature-cloudfront-functions.js
levnovikov Oct 25, 2023
d4bcac6
Merge pull request #1215 from levnovikov/patch-1
DarthSim Nov 1, 2023
278168a
Merge pull request #1213 from okliv/patch-1
DarthSim Nov 1, 2023
29923ca
Remove docs/chaining_the_processing.md (clone of docs/chained_pipelin…
DarthSim Oct 28, 2023
760b277
Update special thanks section in README
DarthSim Nov 1, 2023
92d88fb
Docs were moved to https://github.com/imgproxy/imgproxy-docs
DarthSim Nov 3, 2023
235b072
Remove netlify.toml
DarthSim Nov 4, 2023
53bee6f
Add status_codes_total counter to Prometheus metrics
DarthSim Nov 4, 2023
a5393e1
Remove deprecated linters
DarthSim Nov 4, 2023
8b5255d
Remove notify-imgproxy-helm GH Action
DarthSim Nov 5, 2023
b384e2b
Add client-side decryption support to S3
gjtorikian Oct 17, 2023
4031abb
Update CHANGELOG
DarthSim Nov 6, 2023
33bbfd0
Use vips_addalpha instead of vips_bandjoin_const1
DarthSim Nov 13, 2023
07528db
Use palette-bit-depth for palette bitdepth instead of VIPS_META_BITS_…
DarthSim Nov 13, 2023
16571e1
fix typo
trungdlp-wolffun Aug 24, 2023
949c71d
Fix build with libvips <8.15
DarthSim Nov 13, 2023
be31a2e
Fix typo
DarthSim Nov 13, 2023
1291369
Update CHANGELOG
DarthSim Nov 13, 2023
b90f73c
Typo
DarthSim Nov 17, 2023
8887f09
Update base Docker image
DarthSim Nov 18, 2023
707a24e
HEIC saving support
DarthSim Nov 18, 2023
f799469
Remove scRGB alpha tiff warning for vips 8.15+
DarthSim Nov 18, 2023
37f4332
Drop support of vips prior to 8.13
DarthSim Nov 18, 2023
2f5a5fc
Remove .github/workflows/docs-lint.yml
DarthSim Nov 21, 2023
e619def
Update CI Docker file & add push hook
DarthSim Nov 21, 2023
23c4bdd
Fix CI image build
DarthSim Nov 21, 2023
e0091ad
Another try to fix CI image build
DarthSim Nov 21, 2023
eadac78
Screw it, just add gobject-introspection to CI image
DarthSim Nov 21, 2023
ca5e5b6
Add libgirepository1.0-dev to CI image
DarthSim Nov 21, 2023
5cbe4c6
Add kvazaar to NOTICE
DarthSim Nov 21, 2023
6b58b5b
Update changelog
DarthSim Nov 21, 2023
e29f658
Update CI Docker image
DarthSim Nov 21, 2023
24fd596
Add vips 8.15 to CI
DarthSim Nov 21, 2023
b897a63
Remove explicit vips_vector_set_enabled
DarthSim Nov 22, 2023
d1c607b
Add Highway to NOTICE
DarthSim Nov 22, 2023
fe94f82
Update base Docker image
DarthSim Nov 22, 2023
ed6050d
Use VIPS_META_PALETTE for palette detection if available
DarthSim Nov 22, 2023
b2a48fc
Update changelog
DarthSim Nov 22, 2023
478e34e
typo
DarthSim Nov 23, 2023
b787a59
Update deps
DarthSim Nov 23, 2023
4a531ba
Remove deprecated s3crypto.RegisterKMSWrapWithAnyCMK call
DarthSim Nov 23, 2023
9bd19c3
Bump version
DarthSim Nov 23, 2023
1f9b348
Remove go 1.19 from CI
DarthSim Nov 23, 2023
2abe0b1
Update golangci-lint version in CI
DarthSim Nov 23, 2023
de5edf2
Update base Docker image
DarthSim Nov 25, 2023
b0aa618
Fix Lefthook hooks on macOS
DarthSim Nov 25, 2023
9f27536
Use multiarch/qemu-user-static:aarch64 in Cloud Build
DarthSim Nov 27, 2023
225e03b
Revert "Use multiarch/qemu-user-static:aarch64 in Cloud Build"
DarthSim Nov 27, 2023
2d0e9ac
rebase upstream
fenos Nov 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BasedOnStyle: GNU
AccessModifierOffset: -2
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignOperands: DontAlign
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Stroustrup
IndentWidth: 2
SortIncludes: Never
SpaceAfterCStyleCast: true
SpaceBeforeParens: ControlStatements
TabWidth: 2
UseTab: Never
ColumnLimit: 0
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: imgproxy
25 changes: 20 additions & 5 deletions .github/workflows/Dockerfile → .github/ci-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye-slim
FROM debian:stable-slim

RUN apt-get -qq update \
&& apt-get install -y --no-install-recommends \
Expand All @@ -7,8 +7,11 @@ RUN apt-get -qq update \
git \
ca-certificates \
build-essential \
ninja-build \
gobject-introspection \
libgirepository1.0-dev \
python3-pip \
python3-venv \
libssl-dev \
libglib2.0-dev \
libxml2-dev \
libjpeg-dev \
Expand All @@ -25,14 +28,27 @@ RUN apt-get -qq update \
libopencv-imgproc-dev \
libopencv-objdetect-dev \
libopencv-dnn-dev \
&& pip install --force meson \
&& python3 -m venv /root/.python \
&& /root/.python/bin/pip install meson ninja \
&& rm -rf /var/lib/apt/lists/*

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& export PATH="/root/.cargo/bin:$PATH" \
&& cargo install cargo-c \
&& cd /root \
&& git clone --depth 1 https://github.com/DarthSim/quantizr.git \
&& cd quantizr \
&& cargo cinstall --release --library-type=cdylib \
&& rm -rf /root/.rustup /root/.cargo

ENV PATH="/root/.python/bin:$PATH"
ENV LD_LIBRARY_PATH="/usr/local/lib"

RUN \
mkdir /root/vips \
&& cd /root/vips \
&& curl -s -S -L -o vips_releases.json "https://api.github.com/repos/libvips/libvips/releases" \
&& for VIPS_VERSION in "8.13" "8.14"; do \
&& for VIPS_VERSION in "8.13" "8.14" "8.15"; do \
mkdir $VIPS_VERSION \
&& export VIPS_RELEASE=$(grep -m 1 "\"tag_name\": \"v$VIPS_VERSION." vips_releases.json | sed -E 's/.*"v([^"]+)".*/\1/') \
&& echo "Building Vips $VIPS_RELEASE as $VIPS_VERSION" \
Expand All @@ -45,7 +61,6 @@ RUN \
--prefix=/root/vips/$VIPS_VERSION \
--libdir=lib \
-Dgtk_doc=false \
-Dintrospection=false \
&& ninja -C _build \
&& ninja -C _build install \
&& cd .. \
Expand Down
4 changes: 4 additions & 0 deletions .github/ci-docker/hooks/push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
DATETAG=$(date +%Y%m%d%H%M)
docker tag $IMAGE_NAME $DOCKER_REPO:$DATETAG
docker push $DOCKER_REPO:$DATETAG
26 changes: 0 additions & 26 deletions .github/workflows/docs-lint.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
lint:
runs-on: ubuntu-latest
container:
image: darthsim/imgproxy-ci:202302212110
image: darthsim/imgproxy-ci:202311211816
strategy:
matrix:
go-version: ["1.20.4"]
vips-version: ["8.14"]
go-version: ["1.21.4"]
vips-version: ["8.15"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -34,9 +34,9 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
version: v1.55.0
args: --timeout 5m0s
skip-cache: true
env:
LD_LIBRARY_PATH: "${{ env.LD_LIBRARY_PATH }}:/root/vips/${{ matrix.vips-version }}/lib"
PKG_CONFIG_PATH: "${{ env.PKG_CONFIG_PATH }}:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"
LD_LIBRARY_PATH: "/usr/local/lib:/root/vips/${{ matrix.vips-version }}/lib"
PKG_CONFIG_PATH: "/usr/local/lib/pkgconfig:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: darthsim/imgproxy-ci:202302212110
image: darthsim/imgproxy-ci:202311211816
strategy:
matrix:
go-version: ["1.20.4"]
vips-version: ["8.14"]
go-version: ["1.21.4"]
vips-version: ["8.15"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -34,5 +34,5 @@ jobs:
- name: Test
run: go test ./...
env:
LD_LIBRARY_PATH: "${{ env.LD_LIBRARY_PATH }}:/root/vips/${{ matrix.vips-version }}/lib"
PKG_CONFIG_PATH: "${{ env.PKG_CONFIG_PATH }}:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"
LD_LIBRARY_PATH: "/usr/local/lib:/root/vips/${{ matrix.vips-version }}/lib"
PKG_CONFIG_PATH: "/usr/local/lib/pkgconfig:/root/vips/${{ matrix.vips-version }}/lib/pkgconfig"
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ run:
linters:
disable-all: true
enable:
- deadcode
# - errcheck
- gocritic
# - goconst
Expand All @@ -15,11 +14,9 @@ linters:
- govet
- ineffassign
- staticcheck
- structcheck
- stylecheck
- typecheck
- unused
- varcheck

linters-settings:
govet:
Expand Down
3 changes: 2 additions & 1 deletion .lefthook/pre-commit/lint
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/sh

if ! git diff --staged --name-only | grep -qe ".*\.go$"; then
if ! git diff --staged --name-only | grep -qE ".*\.go$|\.golangci\.yml$"; then
echo "Nothing to lint"
exit 0;
fi

if [ -x "$(which brew)" ]; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libarchive)/lib/pkgconfig"
fi

export CGO_LDFLAGS_ALLOW="-s|-w"
Expand Down
1 change: 1 addition & 0 deletions .lefthook/pre-push/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

if [ -x "$(which brew)" ]; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libarchive)/lib/pkgconfig"
fi

export CGO_LDFLAGS_ALLOW="-s|-w"
Expand Down
Loading