Commit Graph

1974 Commits

Author SHA1 Message Date
Viktor Sokolov
126fc72ffd Clone with testutil.Helper 2025-09-16 16:58:34 +02:00
Viktor Sokolov
4698023504 ProcessingOptionsFactory in processing and watermark 2025-09-15 17:03:48 +02:00
Viktor Sokolov
308f3b9c32 Intoduced options.Factory 2025-09-15 16:49:39 +02:00
Victor Sokolov
355e3c506e IMG-56: Security instance (#1524)
* Security instance

* Security -> Checker
2025-09-12 13:52:47 +02:00
DarthSim
91187082f5 Wrap originData.Error() with r.wrapDownloadingErr 2025-09-12 14:17:58 +03:00
DarthSim
0625054342 Simplify svg/svg-test.go 2025-09-12 13:57:38 +03:00
DarthSim
b8861a1c84 Rename semaphores to workers and simlify it 2025-09-11 23:33:33 +06:00
Victor Sokolov
2d6b5a8d5a TestServer, AllowNetworks -> http.Transport (#1523) 2025-09-11 19:26:27 +02:00
DarthSim
1f6d007948 Rebuild headerwriter to server.ResponseWriter 2025-09-11 17:37:52 +06:00
DarthSim
53645688fb Provide shared resources to handlers via HandlerContext interface 2025-09-11 14:10:21 +06:00
DarthSim
adb4341713 Unify HTTP handler definitions 2025-09-11 14:10:21 +06:00
DarthSim
2fcb39085e Move handler errors and path/signature splitting to handlers package 2025-09-11 14:10:21 +06:00
DarthSim
bc9d16a622 Merge branch 'master' into version/4 2025-09-10 18:05:25 +03:00
DarthSim
6f52eca85e Fix possible infinite loop during SVG sanitization 2025-09-10 18:02:50 +03:00
DarthSim
116c382bb0 Merge branch 'master' into version/4 2025-09-10 17:33:33 +03:00
DarthSim
e5d528d60a Add Makefile 2025-09-10 17:31:51 +03:00
DarthSim
079f2ae95c Make integration.Suite a complete boilerplate for integration tests 2025-09-09 23:21:56 +03:00
DarthSim
32909f5e0b Fix failed assertions reporting in testutil.TestDataProvider 2025-09-09 23:17:34 +03:00
DarthSim
8bec24f268 Return reset func for testutil.LazyObj; Add testutil.LazySuite 2025-09-09 23:17:30 +03:00
Victor Sokolov
01327c1cce integration.Suite (#1518) 2025-09-09 16:25:45 +02:00
Victor Sokolov
2d9ad5c250 IMG-49: Introduced instance (#1512)
* Introduced instance

* Makefile changes
2025-09-09 15:11:37 +02:00
DarthSim
e11afc18a8 Merge branch 'master' into version/4 2025-09-08 22:09:34 +03:00
DarthSim
05066d0601 Remove unneeded NULL check; Init tmp images as NULL 2025-09-08 21:17:30 +03:00
DarthSim
2eb80c7f58 Use VIPS_UNREF instead of g_clear_object 2025-09-08 21:07:11 +03:00
DarthSim
7da78ef191 Add IMGPROXY_GRACEFUL_STOP_TIMEOUT config 2025-09-08 20:32:23 +03:00
DarthSim
d02a678229 Call vips.Shutdown() as close to exit as possible 2025-09-08 20:12:32 +03:00
DarthSim
ac03563506 NewDefaultConfig returns value, not pointer; Nested configs are defined as value 2025-09-06 01:56:53 +03:00
DarthSim
4789810b18 Allow using LoadConfigFromEnv with nil config 2025-09-06 01:21:41 +03:00
DarthSim
a39890b00a LoadFromEnv -> LoadConfigFromEnv 2025-09-06 01:11:26 +03:00
DarthSim
269e28bd62 Fix watermark config load 2025-09-06 01:02:29 +03:00
DarthSim
11a17aea33 Provide actual ctx and processing options to watermark.Get in applyWatermark 2025-09-05 18:22:56 +03:00
Victor Sokolov
37a6ea2bf7 IMG-49: Get rid of global watermark image and fetcher (#1515)
* Get rid of global watermark image

* imagedata.Factory, removed global Fetcher
2025-09-05 16:22:57 +02:00
Victor Sokolov
6f11d950fb imagefetcher -> fetcher (#1514) 2025-09-05 15:31:48 +02:00
Victor Sokolov
caffdcd72b IMG-49: Instance requires transport.Config (#1513)
* transport.Config

* Removed redaundant LocalEnaled
2025-09-05 13:52:27 +02:00
Viktor Sokolov
8bc70491fb processing_handler.go -> handlers/processing 2025-09-05 00:46:25 +06:00
DarthSim
7aec46f146 processing.transformAnimated doesn't need imgdata 2025-09-02 19:39:18 +03:00
DarthSim
08d225ccbf Fix vips.Image.IsAnimated when only one page is loaded 2025-09-02 18:22:20 +03:00
DarthSim
ac48257772 Refine processing.ProcessImage 2025-09-02 19:52:56 +06:00
DarthSim
84824a544e Merge branch 'master' into version/4 2025-08-30 22:07:49 +03:00
DarthSim
215fcfee1c Tune HTTP/2 client for performance 2025-08-30 21:54:35 +03:00
DarthSim
0d17d8f421 asyncbuffer: set io.ErrUnexpectedEOF before indicating that we finished reading 2025-08-29 21:19:55 +03:00
Victor Sokolov
c6a95facbb headerwriter in processing_handler.go (#1507)
* headerwriter in processing_handler.go

* Remove not required etag tests

* ETagEnabled, LastModifiedEnabled true by default

* Changed Passthrough signature

* Removed etag package

* Merge writeDebugHeaders*
2025-08-27 15:20:10 +02:00
DarthSim
49791b03a2 Cancel request in streaming handler only if it exists 2025-08-26 20:45:30 +03:00
DarthSim
b5b31ebfb7 Remove imagefetcher.bodyReader; Don't cancel request on error in FetchImage 2025-08-26 20:40:02 +03:00
DarthSim
9fe084d477 Properly close gzipped response body 2025-08-26 20:27:13 +03:00
DarthSim
196b4dfc46 Mark non-exact routes via path 2025-08-26 21:05:04 +06:00
DarthSim
f12fe8414b Validate imagefetcher config 2025-08-26 16:56:35 +03:00
DarthSim
5bbdc37cea Add UserAgent and DownloadTimeout to imagefetcher config 2025-08-26 16:44:39 +03:00
DarthSim
5a945984a7 Add helpers for copying HTTP headers 2025-08-26 19:27:40 +06:00
Victor Sokolov
6c9d26e8f5 IMG-54: NewDefaultConfig(), routes ordering exact/non-exact (#1504)
* NewDefaultConfig() + LoadFromEnv()

* Route order

* Changed route switch

* categoryConfig

* Use Default() in tests
2025-08-25 19:52:29 +02:00