XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 3.0.20
    • DAM JCR Provider

      Since SVG images are a bit different (XML encoded) we cannot get the dimensions using org.devlib.schmidt.imageinfo.ImageInfo as we do when uploading to the dam using JcrAssetUploadAction.

      If you go to our demo and look at any of the SVG images you will see they are missing dimensions. For example /svg-icons/tour-types/offpath.svg.

      In the export the height and width are both 0 value.
      dam.svg-icons.tour-types.offpath..svg.xml

      SVG images have the dimensions written to the XML

      <?xml version="1.0" encoding="utf-8"?>
      <!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
      <svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
      	 viewBox="0 0 113.4 113.4" enable-background="new 0 0 113.4 113.4" xml:space="preserve">
      <path fill="#FFFFFF" d="M65.3,71H45.5c-1,0-1.9-1.3-1.9-2.3s1.3-1.4,2.2-3.8h19.5c1.1,2.4,1.9,3.2,1.9,4.2S66.4,71,65.3,71z"/>
      ...
      ...
      ...
      <polygon fill="#FFFFFF" points="31.7,74.8 29.3,49.9 47.1,50.3 44.3,74.5 "/>
      <polygon fill="#FFFFFF" points="65.6,74.8 63.2,49.9 81,50.3 78.2,74.5 "/>
      <rect x="45.8" y="57.3" fill="#FFFFFF" width="21.8" height="3.8"/>
      </svg>
      

      Notes
      How to load and parse svg documents

        Acceptance criteria

              Unassigned Unassigned
              rgange Richard Gange
              Alex Plouff
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:

                  Task DoD