1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00

55 Commits

Author SHA1 Message Date
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
Marius Cristea
8b5f620ac3 adds dpr transformation (#104)
* adds dpr transformation.

* adds dpr transformation.

* fix conflict.
2018-11-14 19:46:59 +06:00
DarthSim
7ac390621d Flatten image with alpha when saving to jpeg; Make white default background 2018-11-14 17:06:52 +06:00
DarthSim
da1a802632 Use source image format as resulting one dy default 2018-11-14 00:50:38 +06:00
DarthSim
6b7551213f Tests 2018-11-06 17:19:34 +06:00
DarthSim
e1f3f4278b Minor fix 2018-11-02 22:39:38 +06:00
Marius Cristea
a1a74450d1 adds Client Hints support using env variable. (#98)
* adds Client Hints support using env variable.

* Update processing_options.go

Co-Authored-By: selul <marius.cristea@vertistudio.com>

* improve client hints support based on the feedback

* fix build error and remove redundant line in docs.
2018-11-02 22:38:41 +06:00
DarthSim
e6a7c480b1 Plain source URLs support 2018-11-02 21:35:21 +06:00
DarthSim
9fe723e357 Merge branch 'master' into version/2.1 2018-11-02 19:14:45 +06:00
printercu
7104622843 Validate url format after adding BASE_URL (#97) 2018-11-02 18:02:33 +06:00
DarthSim
c043716ac1 Quality processing option 2018-10-30 18:20:02 +06:00
DarthSim
8030e0aa27 Cache buster 2018-10-29 14:54:30 +06:00
DarthSim
c049fb8a28 Watermark scale 2018-10-28 18:05:57 +06:00
DarthSim
ceec679c81 Back to net/http because of fasthttps incompatibiliti with almost everything 2018-10-25 18:08:44 +06:00
DarthSim
e2b3b6a1b8 sm watermark position is not supported 2018-10-19 17:31:09 +06:00
DarthSim
3d98a943a4 Watermark 2018-10-19 15:47:11 +06:00
DarthSim
4275251f4c Properly print processing options parsing error to the log 2018-10-18 17:01:51 +06:00
DarthSim
47012473bb Tiny memory optimization 2018-10-09 19:03:10 +06:00
DarthSim
d4ca9af5be Fix path parsing 2018-10-08 13:42:08 +06:00
DarthSim
2f8d7b8ad6 return ETag support 2018-10-05 22:20:29 +06:00
DarthSim
34a61d287f fasthttp; Optimized memory allocation 2018-10-05 21:17:36 +06:00
DarthSim
ea7f2095b4 Allow hex-coded background colors; Allow empty background argument 2018-10-04 18:27:49 +06:00
DarthSim
9def26c430 Prevent recursive presets usage 2018-10-04 18:02:24 +06:00
DarthSim
45a6f85c48 Add shortcuts for processing options 2018-10-03 21:36:52 +06:00
DarthSim
4f8bae755b Add resizing_type processing option 2018-10-03 21:34:13 +06:00
DarthSim
9e131b9b79 Allow empty optional arguments 2018-10-03 21:33:22 +06:00
DarthSim
a47e111069 Fix focus point gravity in basic URL format 2018-10-03 19:34:53 +06:00
DarthSim
2840994719 Background option 2018-10-02 18:20:23 +06:00
DarthSim
017724d20d Check presets options on start; Exit on preset error 2018-10-02 17:31:51 +06:00
DarthSim
11acf1f96a Webp browser support detection 2018-10-02 17:31:51 +06:00
DarthSim
0eb96b0b42 Better processing options logging 2018-10-02 17:31:51 +06:00
DarthSim
8c4a561b9e Focus point gravity 2018-10-02 17:31:51 +06:00
DarthSim
e7e296aa93 Fix width & height checking 2018-10-02 17:31:51 +06:00
DarthSim
419f01028e Apply default preset when defined 2018-10-02 17:31:51 +06:00
DarthSim
1569f9be20 Fix including image_types.h 2018-10-02 17:31:51 +06:00