statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Glide: negative value for contrast does not decrease contrast #2448

Open helloDanuk opened 5 years ago

helloDanuk commented 5 years ago

Describe the bug

Using a negative value for the contrast setting in glide do not decrease the contrast of the image at all. This code example renders an image with decreased brightness, but not with decreased contrast.

<img src="{{ glide:portrait brightness="-50" contrast="-25" filter="greyscale" }}">

Positiv contrast values increases the contrast as expected. (Even though I need to write the value without the '+', compared to the docs.)

To Reproduce Steps to reproduce the behavior:

Use code example above. It doesn't make any difference if you use presets.

Expected behavior Should decrease the contrast of the image.

Environment details (please complete the following information):