1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00
Commit Graph

89 Commits

Author SHA1 Message Date
DarthSim
65579a5770 Convert context value to string securely 2020-02-05 17:00:31 +06:00
DarthSim
94626f0861 Remove Stripmetadata from processing options 2020-01-30 22:04:55 +06:00
sauerbraten
89f8a4e11c
Add option to keep metadata/tags in output image (#329)
* add env var to disable stripping metadata

by default, all metadata will be stripped (as before)

* always strip orientation tags when rotating the image

in case IMGPROXY_STRIP_METADATA is false

* document IMGPROXY_STRIP_METADATA env var

* remove ICC profile after importing it

needed, in case metadata aren't stripped from the output image
2020-01-30 21:43:08 +06:00
DarthSim
ee450bec46 Trim processing option 2020-01-17 15:54:50 +06:00
DarthSim
05cd1286a4 Add gravity to extend option 2019-12-25 17:04:16 +06:00
DarthSim
7c7ac56a48 Refactor subpackages 2019-12-25 15:18:51 +06:00
DarthSim
c8467f7700 Remove another one debug warning 2019-12-25 14:50:39 +06:00
DarthSim
56f69c193c Remove debug warnings; Update docs 2019-12-25 14:49:20 +06:00
rhyst
70b3252373 Add IMGPROXY_ALLOWED_SOURCES config (#169)
* Add config option to exclusively allow local file system images

* Add allowed sources list, and move source check processing_options.

* Implement custom source parser and remove redundant code.
2019-12-25 14:34:15 +06:00
Dmitry Zuev
d74c402066 Implement Max Bytes Filter (#275)
* Implement Max Bytes Filter

* Update according to code review comments

* Refactor according to code review comments
2019-11-29 18:27:35 +06:00
DarthSim
ba3e20b865 properly parse boolean processing options 2019-11-11 18:58:45 +06:00
DarthSim
a4dd7bc32d Fix parsing path with no options and base64 encoded url 2019-10-21 18:35:36 +06:00
DarthSim
0d5d2f5ec2 po.Resize => po.ResizingType 2019-10-11 17:05:20 +06:00
DarthSim
7c13bdad11 Properly marshal imageType, resizingType and gravityType 2019-10-10 21:06:46 +06:00
DarthSim
cc394501df Log modified processing options only 2019-10-10 21:06:39 +06:00
DarthSim
aa5ce8be8d Add SVG pasthrough 2019-10-01 18:08:30 +06:00
DarthSim
de804a9245 Remove URL verification from processing options parsing stage 2019-09-20 14:30:03 +06:00
DarthSim
d844b4eea9 Fix build with vips <8.6; More verbose "unsupported" errors 2019-09-20 14:25:37 +06:00
DarthSim
16784fb1e2 New logging; JSON and structured log formats 2019-09-16 15:53:45 +06:00
DarthSim
53805e482a DRY some calculations 2019-09-11 16:45:26 +06:00
DarthSim
aa2e8bd90e Better linter settings + linting errors fix 2019-09-11 14:42:36 +06:00
DarthSim
1cbc4eb973 More verbose path parsing errors 2019-08-28 20:36:11 +06:00
DarthSim
4409b08c24 typo 2019-08-28 19:01:02 +06:00
DarthSim
5c96ee1900 Simplify applyProcessingOption 2019-08-13 17:56:14 +06:00
DarthSim
2a92243e47 Add Content-Disposition filename customization 2019-08-13 17:42:47 +06:00
DarthSim
ee54296249 Fix options rewrite 2019-07-22 17:35:52 +06:00
DarthSim
7e979a9024 Move WebP enforcement/preference to processing 2019-06-25 15:19:15 +06:00
DarthSim
c2ce5c5850 Auto resizing type 2019-06-24 18:50:17 +06:00
DarthSim
e894afec13 Crop offsets 2019-06-20 18:49:25 +06:00
DarthSim
4167ade55a Fix dpr option checking 2019-06-19 16:14:41 +06:00
DarthSim
116ccc29e8 expand => extend 2019-06-17 16:15:10 +06:00
DarthSim
dbad387eef Crop processing oprion; Resize type crop is deprecated 2019-06-08 00:14:41 +06:00
DarthSim
a9244a7063 Extract processing handler and imageType functions from server.go 2019-06-03 23:02:46 +06:00
DarthSim
86c883f04b HEIC images support 2019-06-03 22:07:03 +06:00
DarthSim
e93daf979a Fix some processing options checking 2019-05-28 17:39:20 +06:00
Carlos Brando
e071396fd6 Adds an option to allows only presets in the URL. (#156)
* Adds an option to allows only presets in the URL.  If it's enabled, only presets can be used, and all other URL formats are disabled. You can allow it to with an env var.

If it's enabled, only presets can be used, and all other URL formats are disabled. You can allow it to with an env var.

* Add parsePathPresets function

Following DarthSim suggestion, I added a parsePathPresets function and remove the code inside parseURLOptions.
2019-05-16 16:24:41 +06:00
DarthSim
a03d74288f Fix height option check 2019-05-08 20:51:52 +06:00
DarthSim
3d13e6afb2 Back to net/http
Month of testing and profiling show that fasthttp doesn't gives us significatnt profit in memory and performance while being incompatible with many third-side packages and http/2
2019-05-08 17:42:48 +06:00
DarthSim
c0c471ac99 Don't fail on recursive preset usage, just ignore used preset and log warning 2019-05-07 15:19:23 +06:00
DarthSim
d5b7e2aa13 Lint with golangci-lint; Fix linter issues; Add Go 1.12 to CircleCI 2019-04-11 20:07:15 +06:00
DarthSim
67bbf14ba4 Back to fasthttp 2019-03-22 21:07:31 +06:00
DarthSim
3f938c59d5 Fix signing path with escaped source url 2019-02-27 22:06:22 +06:00
DarthSim
5040ba7d61 extend option 2019-02-21 22:20:56 +06:00
DarthSim
4d174e51cf Move c code to vips.c; Move complex vips operations to C 2019-02-11 14:57:04 +06:00
DarthSim
a35ca83a01 Trim = in encoded source urls 2019-01-14 16:50:59 +06:00
DarthSim
165ae18d87 Rename color to rgbColor to not conflict with image/color 2019-01-14 16:50:59 +06:00
DarthSim
5501c3cff7 SVG sources support 2018-12-21 01:58:39 +06:00
DarthSim
4549089183 ICO support 2018-12-02 19:06:16 +06:00
DarthSim
6997e585ef Better expected errors handling 2018-11-20 18:53:44 +06:00
DarthSim
c3852d683d Optimal and correct DPR support 2018-11-15 17:19:27 +06:00