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

61 Commits

Author SHA1 Message Date
Viktor Sokolov
e9e2cbdbc1 Remove empty cachebuster option 2025-11-12 18:30:14 +01:00
DarthSim
e162c9496e Add client features detector 2025-10-29 20:51:00 +06:00
DarthSim
b0256069f1 Define all apply* and parse* functions in options/parser package as Parser methods 2025-10-14 16:57:28 +03:00
Victor Sokolov
f55d1da1f4 env package introduced (#1538) 2025-09-30 13:24:23 +02:00
DarthSim
45229596e0 Decouple optopns parser from options 2025-09-25 23:37:28 +06:00
DarthSim
fa2641f876 Add options.parseFromMap 2025-09-25 18:52:10 +03:00
DarthSim
a59d04bad0 options.DeleteFromChildren -> options.DeleteFromDescendants 2025-09-25 17:26:04 +03:00
DarthSim
ffd1f5b13d Add options.DeleteByPrefix 2025-09-25 17:04:12 +03:00
DarthSim
60289268fa Add more options parsing helpers 2025-09-25 17:02:57 +03:00
DarthSim
0426e97e3f Universal options 2025-09-24 00:41:12 +06:00
DarthSim
89821daa9f Migrate from logrus to log/slog 2025-09-21 20:13:27 +06:00
DarthSim
7c4411fe45 Fix newInvalidArgsError 2025-09-18 19:54:31 +03:00
Victor Sokolov
f8133cd0b1 IMG-57: isSecurityOptionAllowed; shared parse fns (#1528)
* isSecurityOptionAllowed; shared parse fns

* We are not the same
2025-09-18 20:03:41 +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
2d6b5a8d5a TestServer, AllowNetworks -> http.Transport (#1523) 2025-09-11 19:26:27 +02:00
Victor Sokolov
2236bd8170 IMG-23: replace an old imagetype with the new one (#1482)
* imagetype (new) -> imagetype

* Always fallback in C-D, GetTypeMap -> GetTypeByName

* Do not send origin ContentType
2025-08-13 11:36:25 +02:00
DarthSim
2864bab12d Add IMGPROXY_ALLOWED_PROCESSING_OPTIONS config 2025-06-09 18:15:24 +03:00
DarthSim
a5a587eb39 Add IMGPROXY_MAX_RESULT_DIMENSION config and max_result_dimension processing option 2025-06-06 19:29:39 +03:00
DarthSim
3550042a16 Apply new errors processing to more code parts 2025-02-18 17:35:13 +03:00
DarthSim
2145a66174 Fix Invalid zoom value error message for the second argument 2025-02-17 22:30:49 +03:00
DarthSim
528ece8da1 Revised errors for better error reporting 2025-02-17 22:11:40 +03:00
DarthSim
0f37d62fd8 Add IMGPROXY_BASE64_URL_INCLUDES_FILENAME config 2025-01-16 20:52:45 +03:00
DarthSim
90e5f19a6e Rename IMGPROXY_ENABLE_*_DETECTION configs to IMGPROXY_AUTO_* 2024-12-08 19:26:58 +03:00
DarthSim
3f4edb91f7 JPEG XL (JXL) support 2024-12-08 19:02:08 +03:00
DarthSim
750fdddc72 Clenup some smell 2024-11-22 01:36:58 +03:00
DarthSim
cf28d6cd92 Pass gravity name to parseGravity for better error messages 2024-11-21 21:51:12 +03:00
DarthSim
484594cfbb Don't check arguments number in applyCropOption; parseGravity should handle this 2024-11-21 21:46:46 +03:00
DarthSim
f7433303e6 Refactor gravity parsing 2024-11-21 21:27:33 +03:00
DarthSim
e7e7a43bb6 Refactor gravity a bit 2024-11-20 19:43:57 +03:00
DarthSim
23baf1cae0 Add IMGPROXY_ARGUMENTS_SEPARATOR and IMGPROXY_PRESETS_SEPARATOR configs 2024-07-06 22:36:21 +03:00
DarthSim
df75177481 Replace WatermarkOptions.Gravity with GravityReplicate 2024-04-24 19:35:16 +03:00
DarthSim
e31b24931d Update linter and fix linting errors 2024-04-18 21:16:32 +03:00
DarthSim
c84dc020ba Fix recursive presets detection 2024-02-16 20:37:56 +03:00
DarthSim
8eb04ea98b Allow relative values for gravity and watermark offsets 2023-12-01 18:23:24 +03:00
DarthSim
a246eda065 Ensure URL replacements are executed in the specified order 2023-05-28 19:59:51 +03:00
DarthSim
bc5ca9a344 Add URL replacements 2023-05-15 20:15:12 +03:00
DarthSim
7d1f7c903a Use RoundToEven when calculating offsets and watermark size 2023-04-16 21:09:48 +03:00
DarthSim
ee0cb9feda Allow encoding filename with Base64 2023-04-14 22:40:01 +03:00
DarthSim
b92de43cf3 Add support for client hints prefixed with Sec-CH-; Remove Viewport-Width header support 2023-04-11 21:08:39 +03:00
DarthSim
25459ef88c Disable extension checking if the raw processing option is used 2023-04-10 20:13:26 +03:00
DarthSim
50d04d585e Make the expires option set Expires and Cache-Control headers 2023-02-24 19:44:03 +03:00
DarthSim
9416168575 Security processing options 2023-02-23 21:11:44 +03:00
DarthSim
4bf1a27abd Add extend_aspect_ratio processing option 2023-02-19 18:58:30 +03:00
DarthSim
0f7281e56e raw processing option 2022-09-07 18:03:12 +06:00
DarthSim
8a081a917e Rearrange processing options 2022-09-07 18:03:12 +06:00
DarthSim
339b25dbd9 Fix format_quality in presets 2022-08-01 19:58:18 +06:00
DarthSim
de57af42dd NewProcessingOptions without hacks 2022-08-01 19:56:38 +06:00
DarthSim
d610afb48b Use require instead of assert in tests 2022-07-18 19:48:50 +06:00
Valentine Kiselev
23d0807e46 Add attachment option for Content-Disposition header (#887)
* Add attachment option for Content-Disposition header

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* Add documentation to attachment option

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* Add default attachment option value

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* fix: Add default value to docs

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>

* fix: Rename option attachment to return_attachment, add ENV-configuration

Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
2022-06-06 14:53:09 +06:00