Professional Web Applications Themes

SVG outputting polygon instead of path - Adobe Illustrator Macintosh

I am exporting a map as a scg. In Illustrator 10, when I exported the map as svg, it use the <path>. Now that I have upgraded to CS, when I export the map as svg, it uses <polygon>. Is there a setting I need to click so that it outputs with <path> instead or <polygon>? Illustrator 10 SVG Output: <path id="hovey_hall" style="&st37;" d="M413.828,463.781v-3.813v-0.546h-5.991v0.546h-0.546v16.341h6.537v-7.08h4.357v5.446 h8.716v-10.895h-8.716H413.828z"/> Illustrator CS SVG Output: <polygon id="hovey_hall" style="&st39;" points="376.382,463.781 376.382,459.969 376.382,459.423 370.391,459.423 370.391,459.969 369.845,459.969 369.845,476.31 376.382,476.31 376.382,469.229 380.739,469.229 380.739,474.676 389.455,474.676 389.455,463.781 380.739,463.781 "/>...

  1. #1

    Default SVG outputting polygon instead of path

    I am exporting a map as a scg. In Illustrator 10, when I exported the map as svg, it use the <path>. Now that I have upgraded to CS, when I export the map as svg, it uses <polygon>. Is there a setting I need to click so that it outputs with <path> instead or <polygon>?

    Illustrator 10 SVG Output:
    <path id="hovey_hall" style="&st37;" d="M413.828,463.781v-3.813v-0.546h-5.991v0.546h-0.546v16.341h6.537v-7.08h4.357v5.446 h8.716v-10.895h-8.716H413.828z"/>

    Illustrator CS SVG Output:
    <polygon id="hovey_hall" style="&st39;" points="376.382,463.781 376.382,459.969 376.382,459.423 370.391,459.423 370.391,459.969 369.845,459.969 369.845,476.31 376.382,476.31 376.382,469.229 380.739,469.229 380.739,474.676 389.455,474.676 389.455,463.781 380.739,463.781 "/>
    Brian_Huonker@adobeforums.com Guest

  2. #2

    Default Re: SVG outputting polygon instead of path

    Illustrator CS now specifically supports the export of SVG primitives, and Polygon is one of those. If you want to export the shape as a <path> object, the only way I can think of is to use the scissor tool to cut the path -- so it's not a closed shape. Although that might result in it being saved as a <ployline> but it's worth a shot.

    Is there any reason in particular why you'd want to export it as a <path> and not a <polygon> anyway? I guess I never thought people would want to do that...

    :) Mordy
    Mordy_Golding@adobeforums.com Guest

  3. #3

    Default Re: SVG outputting polygon instead of path

    SVG Export from illustrator 10.0.2 in OSX 10.2 or 10.3
    I need to export TIFFs or JPGs as SVGs but in Illustrator 10 there's always errors; the SVG doents are empty except for a link to an external JPG file that illustrator creates whilst exporting. The process seems to work in my old illustrator 9 working under the classic environment. Does anyone else have this problem or better still does anyone have the cure?
    Best regards, Paul
    Halligan@adobeforums.com Guest

  4. #4

    Default Re: SVG outputting polygon instead of path

    Hey Brian I had the same problem. Mordy was right that illustrator automatically deems certain items as polygons or even rectangles. However, I tricked it into turning a polygon into a path by zooming all the way in and adding a curve so small that it wouldn't be noticeable zoomed out. And since polygons don't have curves, illustrator deems it a path! Hope that helps!
    Unregistered Guest

Similar Threads

  1. Outputting a CFC Component
    By murpg in forum Coldfusion - Advanced Techniques
    Replies: 5
    Last Post: June 9th, 12:04 PM
  2. create polygon on the fly
    By Hilmar Hermens in forum Macromedia Director 3D
    Replies: 0
    Last Post: August 26th, 03:23 PM
  3. Polygon Tool
    By Julian Barnett in forum Macromedia Fireworks
    Replies: 1
    Last Post: October 1st, 02:25 PM
  4. [PHP] XX outputting X signs
    By George Pitcher in forum PHP Development
    Replies: 1
    Last Post: July 22nd, 03:08 PM
  5. outputting XML from PHP
    By Aarron in forum PHP Development
    Replies: 1
    Last Post: July 21st, 03:08 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139