Ticket Created
over 4 years ago

WERETECH - 10609

Valid SVG, but fails to compile with org.apache.batik.transcoder

Hey folks — love the new SVG resource feature!

I've been exporting SVGs using Abode Illustrator, and I noticed that certain valid SVG files can cause the compiler to fail.
By default, Adobe doesn't seem to include width="..." height="..." attributes in the SVG file through the exporter, either in "1.0", "1.1", "1.2" or any of the "tiny" profiles.

I've also checked other samples from the web, ie; popular icons from the nounproject.com also fail to compile, ie; check out https://thenounproject.com/search/?q=duck&i=2595608

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 340 425" x="0px" y="0px">

These SVG files work when the height and width attributes are manually included.