* Support wildcards with * in AllowedSources (excluding slashes)
* Compile allowed sources patterns when parsing config
* Fix linter errors
Co-authored-by: Christopher Hlubek <christopher.hlubek@networkteam.com>
* 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>
* 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>
* 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>
* 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