Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange 'color cascade' when applying blur to image #7

Open
jasomdotnet opened this issue Mar 11, 2017 · 0 comments
Open

Strange 'color cascade' when applying blur to image #7

jasomdotnet opened this issue Mar 11, 2017 · 0 comments

Comments

@jasomdotnet
Copy link

jasomdotnet commented Mar 11, 2017

When applying this blur technique on picture I see some strange 'color cascade':
color cascading
When I create blurred svg image using this technique, it's perfect. Why?

I think, it's because 2nd method blurs image proportionally in opposite to 1th method (your one) which blurs image depending on screensize.

Blur the image proportionally and then style it to element background like this

background: #ccc url('img.jpg') repeat fixed center center / cover;

--
Update:
It's because <filter> miss color-interpolation-filters tag set to sRGB:
<filter id="blur" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
My general advice regarding also issues #6 #5 sounds "do svg code like this":

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     width="1500" height="823"
     viewBox="0 0 1500 823">
  <filter id="blur" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
    <feGaussianBlur stdDeviation="20 20" edgeMode="duplicate" />
    <feComponentTransfer>
      <feFuncA type="discrete" tableValues="1 1" />
    </feComponentTransfer>
  </filter>
  <image filter="url(#blur)" xlink:href="https://github.com/some/image.jpg" x="0" y="0" height="100%" width="100%"/>
</svg>

source + read this article

@jasomdotnet jasomdotnet changed the title Strange 'color cascading' when applying blur to image Strange 'color cascade' when applying blur to image Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant