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

131 Commits

Author SHA1 Message Date
Victor Sokolov
30c323f6cd IMG-90: check IMGPROXY_FORMAT_QUALITY (#1593) 2025-12-18 09:46:42 +01:00
Victor Sokolov
aadead21d9 IMG-83: typed env vars (#1591)
* IMG-83: typed env vars

* Removed CLI flag, fixed FormatQuality&Presets logic

* URLReplacements, updated bind logic
2025-12-15 09:06:41 +01:00
Victor Sokolov
69c7d2f117 IMG-76: new linter config & fixes (#1587)
* IMG-76: new linter config & fixes

* Upgrade golangci-lint to 2.7.2
2025-12-10 13:46:22 +01:00
DarthSim
213cd8d700 xmlparser: Make tokens writeable 2025-12-09 23:50:04 +06:00
Sergei Aleksandrovich
98feb29e57 Use homegrown XML parser (#1559)
* Use XML parser based on encoding/xml

* Implement raw XML parser

* Speed-up xml parser

* Add line number to XML parser syntax errors

* Add svgparser.StartElement.SelfClosing

* Utilize bufio.Reader.ReadSlice in XML parser

* Polish XML parser tests; Add XML parser benchmark

* Move XML parser to ./xmlparser

* Use all XML parser tokens as pointers

* Add xmlparser.Document.ReplaceEntities method

* Combine xmlparser.Text and xmlparset.CData

* Optimize entities replacement in xmlparser

* xmlparser.parseEntityMap: ignore comments

* xmlparser: add document parsing benchmark

* xmlparser: Refactor attributes

* xmlparser: simplify Attributes.Filter

* xmlparser: add Attributes.Has, Node.FilterChildren, and Node.FilterChildNodes

* xmlparser: add Node.ChildNodes
2025-11-27 01:43:04 +06:00
Sergei Aleksandrovich
e33254005d Refactored errors (#1578)
* Refactored errors

* Make monitoring and errorreport accept `errctx.Error` instead of `error`

* Add server.Error; Remove category from errctx; Make HTTP handlers respond with *server.Error

* Remove stackSkip from errctx.Wrap; Add errctx.WrapWithStackSkip
2025-11-20 01:26:21 +06:00
DarthSim
b858535d22 Open image downloading tracing spans inside imagedata.Factory.Download* methods 2025-11-14 14:59:18 +06:00
DarthSim
3f2b019721 Get rid of security.Options. Use security.Checker directly with options.Options 2025-11-14 14:09:43 +06:00
DarthSim
2675eb293b Merge branch 'master' into version/4 2025-11-06 23:25:46 +03:00
DarthSim
05e8dd7e12 Add flip processing option 2025-11-07 01:50:01 +06:00
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