I'm currently faced with a minor issue regarding the styling of an SVG and image contained within it. The SVG includes two filters - one for the entire object (#innershadow) and another that should only apply to the image inside, as the wave effect (#turbulance) is affecting the overall appearance of the SVG. I am looking to achieve sharp edges with shadows inside the SVG and a blurred image inside (with both the SVG and #turbulence effect being animated). Is this feasible?
.svg {
filter: url("#innershadow") url("#turbulence");
}
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 2100 1500" class="svg" x="0px" y="0px">
<filter id="innershadow" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur in="SourceAlpha" stdDeviation="10" result="blur"></feGaussianBlur>
<feOffset dy="12" dx="12"></feOffset>
<feComposite in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite>
<feFlood flood-color="#444444" flood-opacity="0.75"></feFlood>
<feComposite in2="shadowDiff" operator="in"></feComposite>
<feComposite in2="SourceGraphic" operator="over" result="firstfilter"></feComposite>
<feGaussianBlur in="firstfilter" stdDeviation="10" result="blur2"></feGaussianBlur>
<feOffset dy="-12" dx="-12"></feOffset>
<feComposite in2="firstfilter" operator="arithmetic" k2="-1" k3="1" result="shadowDiff"></feComposite>
<feFlood flood-color="#444444" flood-opacity="0.75"></feFlood>
<feComposite in2="shadowDiff" operator="in"></feComposite>
<feComposite in2="firstfilter" operator="over"></feComposite>
</filter>
<filter id="turbulence" x="0" y="0" width="100%" height="100%">
<feTurbulence id="sea-filter" numOctaves="0.1" seed="2" baseFrequency="0.02 0.05"></feTurbulence>
<feDisplacementMap scale="20" in="SourceGraphic"></feDisplacementMap>
<animate xlink:href="#sea-filter" attributeName="baseFrequency" dur="60s" keyTimes="0;0.5;1" values="0.02 0.06;0.04 0.08;0.02 0.06" repeatCount="indefinite"/>
</filter>
<defs>
<pattern id="img1" patternUnits="userSpaceOnUse" x="0" y="0" height="100%" width="100%">
<image xlink:href="../../assets/images/backgrounds/wall-main.png" x="0" y="0" height="100%" width="100%" preserveAspectRatio="xMidYMid slice"/>
</pattern>
</defs>
<path fill="url(#img1)" filter="url(#innershadow); url(#turbulence)" >
<animate repeatCount="indefinite" attributeName="d" dur="5s"
values="M382,118c100.383-77.825,276.671,59.258,448,34,65.577-9.668,196.57-94.87,294-58,83.39,31.556,92.13,116.309,174,136,108.23,26.031,207.9-110.974,286-74,61.42,29.075,37.81,132.343,110,186,47.83,35.547,81.23,14.642,132,52,51.7,38.043,88.14,109.739,82,176-6.17,66.5-50.93,79.125-60,144-10.14,72.489,46.43,113.009,26,170-29.24,81.6-166.19,63.417-218,148-53.48,87.31,29.83,209.23-26,264-44.42,43.57-141....
</path>
</svg>
https://i.sstatic.net/5t8Qg.jpghttps://i.sstatic.net/TTr9z.jpg