title: Display SVG image with Foundation Image component
body: <p>I am trying to use the Image component in CQ5.6 to include an SVG image on a page.  I can get the component to use the SVG by dragging the image from the content finder to the component, but this also causes an error in the log:</p>
  
  <pre><code>Caused by: javax.imageio.IIOException: No decoder available to load the image
      at com.day.image.Layer.&lt;init&gt;(Layer.java:786)
      at com.day.image.Layer.&lt;init&gt;(Layer.java:588)
      at com.day.image.Layer.&lt;init&gt;(Layer.java:511)
      at com.day.cq.commons.ImageHelper.createLayer(ImageHelper.java:173)
      at com.day.cq.commons.ImageResource.getLayer(ImageResource.java:569)
      at libs.foundation.components.parbase.img_GET.writeLayer(img_GET.java:72)
      at com.day.cq.wcm.commons.AbstractImageServlet.doGet(AbstractImageServlet.java:80)
      at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
      at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
      at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
      at org.apache.sling.scripting.java.impl.ServletWrapper.service(ServletWrapper.java:126)
      at org.apache.sling.scripting.java.impl.JavaScriptEngineFactory.callServlet(JavaScriptEngineFactory.java:211)
      ... 88 more
  </code></pre>
  
  <p>I've made several attempts to add support for SVGs by including SVG implementations of the <code>javax.imageio</code>, but have yet to succeed.  The closest that I have come to success was using Batik, in which case CQ5 seemed to get stuck in an infinite loop at <code>Layer.java:769-781</code>.</p>
  
  <p>Has anybody managed to make the OOTB Image component work with SVG images?</p>