Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    13,104

    Lightbulb Handling SVGs in your XDA

    I consider it amazing that Xara has yet to respond to handling SVG files in a vector-driven application.

    This is my current workaround:
    1. Drop an SVG onto the page.
      My demo file that I have used is AcornAtavar.svg
      The XDA renders this as a Group: a collection of shapes, text, fills and images, depending on the complexity of the SVG.
      All well and good until (Website > )Export and the grouped elements are converted to a 96dpi image, typically PNG. And yes, there could also be a Retina version.
      The group still requires an Image filename for SEO and just plain manners.
    2. Select the Group and press Shift+Ctrl+Alt+A to get an Attach File dialog and locate and pick the same SVG.
      I use the Search Everything program so I can pick up the full path easily and input that directly.
      The places the file into the index_htm_files/ folder.
    3. Now enter Placeholder > HTML code (body) and input:
      <img src="index_htm_files/
      AcornAtavar.svg
      " width=100% height=100% />
      You should keep Regenerate placeholder unticked, especially if scaling afterwards.
    4. You now have an SVG instead of a PNG and a named one at that.

    My design file: SVG - File Handling.xar

    As an extra, I added some simple CSS to provide a rollover for comparison. It scales up the shapes to 500%. In use, you add the special Name htmlclass="svg" to anything.
    The third acorn is "exploded" to show the artefacts in better detail.

    Acorn


    CSS:

    <style>


    .svg {
    transition: transform 1s ease-in-out;
    overflow: hidden;
    }
    .svg:hover {
    transform: scale(5);
    cursor: zoom-in;
    }
    </style>
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

  2. #2
    Join Date
    Feb 2007
    Location
    UK
    Posts
    18,688

    Default Re: Handling SVGs in your XDA

    why is this in graphics chat - you are talking about website application here are you not ?

    I have no issues worth mentioning with SVG in pro+ as a vector graphic
    -------------------------------
    what can I say ?

  3. #3
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    39,191

    Default Re: Handling SVGs in your XDA

    I'll move this to web chat. OK?
    Gary W. Priester
    Mr. Moderator Emeritus Dude
    , Sir

    gwpriester.com | Custom-Stereograms.com | eyeTricks on Facebook






  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    13,104

    Default Re: Handling SVGs in your XDA

    Quote Originally Posted by handrawn View Post
    why is this in graphics chat - you are talking about website application here are you not ?
    I have no issues worth mentioning with SVG in pro+ as a vector graphic
    handrawn, rendering SVGs might have issues in non-web design so I felt it worth a wider airing.

    With Pro+ and exporting to PDF/X, I see no difference but I have not checked with Animations or pasting into MS Word...

    Acorn
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    13,104

    Default Re: Handling SVGs in your XDA

    Quote Originally Posted by gwpriester View Post
    I'll move this to web chat. OK?
    Gary, I don't consider that a help but I'm not too bothered.

    Acorn
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

  6. #6
    Join Date
    Feb 2007
    Location
    UK
    Posts
    18,688

    Default Re: Handling SVGs in your XDA

    it's just that it is headed 'handling SVGs in your XDA', when in fact
    All well and good until (Website > )Export...
    betrays the fact that it is a website specfic issue

    I don't really care that much, but it was not what I was expecting fron the title in this forum
    -------------------------------
    what can I say ?

  7. #7
    Join Date
    Feb 2007
    Location
    UK
    Posts
    18,688

    Default Re: Handling SVGs in your XDA

    rendering SVGs might have issues in non-web design
    ##i don't see these addressed in your post - did I miss it ?
    -------------------------------
    what can I say ?

  8. #8
    Join Date
    Oct 2006
    Location
    StPeters, MO USA
    Posts
    10,048

    Default Re: Handling SVGs in your XDA

    Thank you Acorn, interesting information
    Larry a.k.a wizard509

    Never give up. You will never fail, but you may find a lot of ways that don't work.

  9. #9
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    13,104

    Default Re: Handling SVGs in your XDA

    Quote Originally Posted by handrawn View Post
    it's just that it is headed 'handling SVGs in your XDA', when in fact betrays the fact that it is a website specfic issue
    I don't really care that much, but it was not what I was expecting fron the title in this forum
    I bracketed the website part on purpose.

    It is a similar situation to importing or linking (say, a PDF). There are times and places for both, hence the handling deficiency, as I see it, with SVGs.

    Acorn
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

  10. #10
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    13,104

    Default Re: Handling SVGs in your XDA

    Quote Originally Posted by handrawn View Post
    ##i don't see these addressed in your post - did I miss it ?
    The "might" was bait for further discussion.

    Acorn
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •