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