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
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