Created
June 1, 2012 00:48
-
-
Save sawyerh/2847661 to your computer and use it in GitHub Desktop.
Black and White Images With SVG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="640" height="360" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"> | |
<filter id="grayscale"> | |
<feColorMatrix type="saturate" values="0"/> | |
</filter> | |
<image class="bw" filter="url(#grayscale)" width="100%" height="100%" xlink:href="image.jpg" /> | |
<image class="color" width="100%" height="100%" xlink:href="image.jpg" /> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment