Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
* [Galene] Background blur on Safari
@ 2025-01-19 11:11 Juliusz Chroboczek
  0 siblings, 0 replies; 2+ messages in thread
From: Juliusz Chroboczek @ 2025-01-19 11:11 UTC (permalink / raw)
  To: galene

Hi,

I've managed to get background blur to work on Safari.  I've tested on
Safari 18.2 for Mac OS X, I'll be grateful if people could tell me whether
it does the right thing on iOS.

The issue turned out to be Safari bug 198416:

  https://bugs.webkit.org/show_bug.cgi?id=198416

Safari silently ignores the "filter" property of Canvas2D, and therefore
doesn't perform blur when requested.  The result is that Galene would
painstakingly separate the foreground from the background, then fail to
blur the background, and finally recompose the two parts in order to get
what is essentially the original image.

It would probably have been a lot of fun to write a Gaussian blur as
a WebGL shader, I went for something significantly more low-tech: I scale
down the background by a factor of 36, then scale it back up.  While
upscaling, Safari applies what, to my untrained eyes, looks like
a bilinear filter, which yields a fairly acceptable blur.

The code checks for the availability of the "filter" property, not for the
browser version, so Safari users will get proper background blur as soon
as they get a version of Safari with the bug fixed.

Thanks again to Dirk-Willem van Gulik, who loaned me the Mac on which this
work was done.

-- Juliusz


  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Galene] Background blur on Safari
@ 2024-12-14 16:28 Juliusz Chroboczek
  0 siblings, 0 replies; 2+ messages in thread
From: Juliusz Chroboczek @ 2024-12-14 16:28 UTC (permalink / raw)
  To: galene

Hi,

A user just reported that the background blur code doesn't work on Safari
15.6.  I've looked at the code, and while I'm positive it cannot work on
Safari 14 and earlier, I don't see anything that's not supposed to be
supported by Safari 15.

If you have a copy of Safari at the bottom of some drawer, could you
please test the background blur code and send me the console output?

Thanks,

-- Juliusz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-19 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-19 11:11 [Galene] Background blur on Safari Juliusz Chroboczek
  -- strict thread matches above, loose matches on Subject: below --
2024-12-14 16:28 Juliusz Chroboczek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox