i3lock-fancy icon indicating copy to clipboard operation
i3lock-fancy copied to clipboard

Issue with background image colors after blurring

Open cjbassi opened this issue 6 years ago • 4 comments

Some colors become much darker when blurred and also some colors become completely altered. I'm curious if anyone else has these issues but I could post pics if needed. For an example of the darkening, white backgrounds seem to be okay overall like in the example gif in the README, but if you use the locker on this image, it becomes more noticeable. And color changing issues are noticeable here. I assume this is an issue with imagemagick but I thought I would start here.

cjbassi avatar Mar 09 '18 00:03 cjbassi

I believe that's a general problem with some sorts of hardware-accelerated blurs and it's one of the tradeoffs with speed vs accuracy, but I might be misremembering.

PandorasFox avatar Mar 09 '18 03:03 PandorasFox

I will have a look and try to test. Right now the script darkens using transparent black when the background is above a certain brightness threshold, then blurs. Maybe the order of steps needs to change or maybe it is an issue with image magick and blurring in general.

meskarune avatar Apr 30 '18 21:04 meskarune

I have this issue as well and can provide some examples. Here are the locked and unlocked images.

alimoabd2127 avatar Sep 06 '18 16:09 alimoabd2127

The script is supposed to darken the background when it blurs, so that is intentional, but it wouldn't be normal if there are major color changes like purple to blue for example.

meskarune avatar Sep 06 '18 20:09 meskarune