DarthSim
bac349558c
AVIF support detection & AVIF enforcement
2021-01-18 21:56:36 +06:00
DarthSim
9ffb0f514d
Crop by percentage
2021-01-18 21:14:15 +06:00
DarthSim
e48c557fc4
rotate processing option
2021-01-13 20:51:19 +06:00
DarthSim
6da8885605
IMGPROXY_AUTO_ROTATE config and auto_rotate processing option
2021-01-13 19:57:29 +06:00
DarthSim
c84e7ed34d
Per-format default quality config
2021-01-13 17:58:36 +06:00
DarthSim
40563f9573
Ability to keep ICC profile
2021-01-12 20:43:09 +06:00
DarthSim
a1679e5e09
Proper arguments check for strip_metadata
2020-09-01 17:55:00 +06:00
DarthSim
17af7add23
Remove unnecessary use of fmt.Sprintf
2020-07-31 20:07:39 +06:00
DarthSim
3cc674caf6
Use r.RequestURI in path parsing and logging
2020-07-08 19:08:53 +06:00
DarthSim
f98dfca44a
applyMetaStripmetaOption => applyStripMetadataOption
2020-07-01 19:50:47 +06:00
John Koehl
616ec996b3
Implements #421 processing option to control meta stripping ( #422 )
...
* Implements processing option to control meta stripping
* Update based on code review comments
Change name of option to "stripmeta" and change how we handle config vs request setting logic
* Fix indentation style typo
* Fix indentation style typo
* Use full metadata naming for config and variables
Co-authored-by: John Koehl <johnk@zillowgroup.com>
Co-authored-by: John Koehl <jkoehl>
2020-07-01 19:45:33 +06:00
ILYA
12b415c9bd
Implement padding option ( #358 )
...
* Implement padding option
* Move padding `embed` to the right place
* Move padding `embed` to the right place
* Use general background option instead of specific padding's one
* Make padding options css-like and fully optional
* Add docs for new padding option
* Return error if padding embed fails
* Make padding outbounds and apply dpr for it
Co-authored-by: Ilya Melnitskiy <melnitskiy_i_m@onyx-team.com>
2020-04-09 15:43:56 +06:00
ILYA
4bd745f764
Improve trim method to accept color to be cut off and hor/ver alignment options ( #357 )
...
* Improve trim method to accept color to be cut off and hor/ver alignment options
* Make color and equality args truly optional
* Add docs for new trim params
Co-authored-by: Ilya Melnitskiy <melnitskiy_i_m@onyx-team.com>
2020-04-07 18:06:28 +06:00
DarthSim
70e26cdd97
Add IMGPROXY_PATH_PREFIX config
2020-04-07 17:54:00 +06:00
DarthSim
06c7df1e14
Properly name go module & update docs
2020-02-27 22:30:31 +06:00
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