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

138 Commits

Author SHA1 Message Date
DarthSim
7d56f87c89 xmlparser: add Attributes.Has, Node.FilterChildren, and Node.FilterChildNodes 2025-11-25 22:12:43 +03:00
DarthSim
ac574f880e xmlparser: Refactor attributes 2025-11-21 21:31:12 +03:00
DarthSim
53fd3c7fe1 Merge branch 'version/4' into experiment/xml-parser-2 2025-11-20 00:00:49 +03: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
3d223ead20 Add xmlparser.Document.ReplaceEntities method 2025-11-14 19:54:26 +03: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
DarthSim
065a3c5354 Move XML parser to ./xmlparser 2025-10-24 23:34:05 +03:00
DarthSim
b2f6494151 Polish XML parser tests; Add XML parser benchmark 2025-10-24 23:29:34 +03:00
DarthSim
c602db369d Utilize bufio.Reader.ReadSlice in XML parser 2025-10-24 22:46:04 +03:00
DarthSim
0f8223fd07 Add svgparser.StartElement.SelfClosing 2025-10-24 22:46:04 +03:00
DarthSim
6c2eff3b54 Add line number to XML parser syntax errors 2025-10-24 22:46:04 +03:00
DarthSim
f9c79192b5 Speed-up xml parser 2025-10-24 22:46:04 +03:00
DarthSim
c77f768a99 Implement raw XML parser 2025-10-24 22:46:02 +03:00
DarthSim
2f7d566136 Use XML parser based on encoding/xml 2025-10-24 22:35:44 +03: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