1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-23 22:11:10 +02:00
Commit Graph

121 Commits

Author SHA1 Message Date
Victor Sokolov
ce2bc83ce7 SVG instance (#1551) 2025-10-03 16:48:37 +02:00
Victor Sokolov
f55d1da1f4 env package introduced (#1538) 2025-09-30 13:24:23 +02:00
DarthSim
6c884f42f1 Standartize loading functions; Refactor processing.scaleOnLoad 2025-09-29 17:00:37 +06:00
DarthSim
cc535a5214 Standartize saving functions 2025-09-29 17:00:37 +06:00
DarthSim
64cdf914f9 Add vips.Config; Move WebpPreset to vips 2025-09-29 17:00:37 +06:00
DarthSim
45229596e0 Decouple optopns parser from options 2025-09-25 23:37:28 +06:00
DarthSim
da1eb3e242 Pass options.Options to processing.NewGravityOptions 2025-09-25 17:29:22 +03:00
DarthSim
c3786dbec0 Pass Context to processing.extendImage 2025-09-25 17:28:09 +03:00
DarthSim
af63aba7a4 Fix watermarks 2025-09-25 15:47:00 +03:00
DarthSim
0426e97e3f Universal options 2025-09-24 00:41:12 +06:00
DarthSim
a0942b2368 Define processing.CalcCropSize globally 2025-09-23 19:07:40 +03:00
DarthSim
b9cbc0f97b Don't rely on global config in processing 2025-09-23 19:07:08 +03:00
Victor Sokolov
ba73b16c39 IMG-59: processing instance (#1533)
* lazy processing test

* Processor instance

* Fixes to prepare.go
2025-09-23 15:55:04 +02:00
Victor Sokolov
30a5122d08 IMG-59: processing_test.go became lazy, added test image hash calculation (#1532)
* lazy processing test

* VHS

* ImageHashMatcher
2025-09-22 19:32:34 +02:00
DarthSim
89821daa9f Migrate from logrus to log/slog 2025-09-21 20:13:27 +06:00
DarthSim
a63778e3cf Add a huge comment on DPR compenation in calcScale 2025-09-20 00:27:01 +03:00
DarthSim
5ac82cec34 Fix enlarge protection when image data is not provided 2025-09-19 23:07:02 +03:00
DarthSim
521df55ad5 Fix cyrillic c 2025-09-18 21:07:38 +03:00
DarthSim
7ebf913f98 Expose runner from pipeline context 2025-09-18 20:48:22 +03:00
DarthSim
b5d2cce37a Fix cyrillic C 2025-09-18 20:32:35 +03:00
Viktor Sokolov
833f2bb082 pipeline context changes, Runner 2025-09-18 23:24:23 +06:00
Victor Sokolov
4b05e87274 IMG-57: introduce processing options factory (#1526)
* Intoduced options.Factory

* ProcessingOptionsFactory in processing and watermark

* Clone with testutil.Helper
2025-09-16 17:04:21 +02:00
Victor Sokolov
355e3c506e IMG-56: Security instance (#1524)
* Security instance

* Security -> Checker
2025-09-12 13:52:47 +02:00
Victor Sokolov
01327c1cce integration.Suite (#1518) 2025-09-09 16:25:45 +02:00
DarthSim
ac03563506 NewDefaultConfig returns value, not pointer; Nested configs are defined as value 2025-09-06 01:56:53 +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
DarthSim
7aec46f146 processing.transformAnimated doesn't need imgdata 2025-09-02 19:39:18 +03:00
DarthSim
ac48257772 Refine processing.ProcessImage 2025-09-02 19:52:56 +06:00
DarthSim
08d20d46e6 Merge branch 'master' into version/4 2025-08-20 17:01:34 +03:00
DarthSim
83e64ff2d3 TransformColourProfile -> TransformColourProfileToSRGB 2025-08-20 17:00:54 +03:00
DarthSim
14bb84fa1f Merge branch 'master' into version/4 2025-08-20 16:40:29 +03:00
DarthSim
e1764ad580 Rename processing steps: importColorProfile -> colorspaceToProcessing, exportColorProfile -> colorspaceToResult 2025-08-20 16:35:37 +03:00
Victor Sokolov
15bd00b221 IMG-51: router -> server ns, handlers ns, added error to handler ret val (#1494)
* Introduced server, handlers, error ret in handlerfn

* Server struct with tests

* replace checkErr with return
2025-08-20 14:31:11 +02:00
DarthSim
e5c72270bb Don't check dimensions for vector formats; Simplify guard scale of vector images 2025-08-16 19:54:50 +03:00
DarthSim
cac693c2db Merge branch 'master' into version/4 2025-08-16 18:14:41 +03:00
DarthSim
7bdae0fb0a Fix X-Result-Height debug header for animated images 2025-08-16 18:12:05 +03:00
DarthSim
6d36ccba6d Fix getImageSize for animated images 2025-08-16 18:06:16 +03:00
Victor Sokolov
d47eeee6ad IMG-44: move skip to processing, remove imath.Min/Max (#1485)
* Removed imath.Min/Max

* Skip goes to processing

* no svg_processing error category

* should report SVG
2025-08-15 12:38:16 +02:00
Victor Sokolov
09a25f8966 IMG-23: Replace imagemeta with imagedetect (#1483)
* Replace imagemeta with imagedetect

* Removed imagemeta package

* 1 page in the check
2025-08-13 11:49:48 +02:00
Victor Sokolov
f7a13c99de IMG-13: separate http.Headers from ImageData (#1475)
* Separate headers from ImageData

* processing.Result
2025-08-06 16:46:35 +02:00
Victor Sokolov
3d14c85de3 IMG-13: http.Header, *ImageData -> ImageData (#1473)
* ImageData.Headers()

* *ImageData -> ImageData

* withmatt -> httpheaders of our own

* .Clone() headers, nil

* NewFromBytesWithFormat -> nil

* svg.go -> do not Clone()
2025-08-01 15:44:21 +02:00
Victor Sokolov
efbea5fde5 New imagedata interface (#1471) 2025-07-31 18:18:13 +02:00
DarthSim
a5a587eb39 Add IMGPROXY_MAX_RESULT_DIMENSION config and max_result_dimension processing option 2025-06-06 19:29:39 +03:00
DarthSim
810cad5d26 Calculate all sizes at the start of processing pipeline 2025-06-05 20:28:09 +03:00
DarthSim
dccfe80349 Fix the extend processing option when only one dimension is set 2025-06-04 20:20:20 +03:00
DarthSim
08150dcc16 Add a comment about dprScale for future historians 2025-06-04 19:37:41 +03:00
DarthSim
3550042a16 Apply new errors processing to more code parts 2025-02-18 17:35:13 +03:00
DarthSim
edb050ed21 Fix handling ICC profiles with vips 8.15+ 2024-12-17 21:44:12 +03:00
DarthSim
d9abf2d3d7 Fix animated JPEG XL support 2024-12-08 21:07:36 +03:00