kamsar / Dianoga

An automatic image optimizer for the Sitecore media library.
Other
104 stars 45 forks source link

Fixes #70: webp resizing for concurrent requests #81

Closed ozkansayin closed 3 years ago

ozkansayin commented 3 years ago

WebPOptimizer customizes AdditionalToolArguments property whenever an image is being processed. However, the value of that property is shared among concurrent optimizations. Hence, it was being overwritten by concurrent runs, messing with the -resize parameter for the tool. Instead, the code should generate request (media) specific arguments to be used, and add those to the default arguments + additional tool arguments given in the config files.