Skip to main content
Participant
November 26, 2019
Question

What the heck is going with this SVG?

  • November 26, 2019
  • 2 replies
  • 650 views

I have an SVG file generated by an external program.

It consists fully of rects with coordinates (only >0), but Illustrator makes me think that there are negative ones. I think this is an Illustrator's bug, leaving a link to the Pastebin here. Help me, please.

 

https://pastebin.com/tdyLk6hZ

 

Edit: Also, I have another one which displays fine in Chrome, Edge, Firefox, and IE, but not in Illustrator:

https://pastebin.com/NGqAiPR4

2 replies

renél80416020
Inspiring
November 28, 2019

Salut!

Tu ajoute ça au début du svg;

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="384px" height="320px" viewBox= "0 0 384 320" xml:space="preserve">
<rect style="fill:#164352;" x="0" y="0" transform="rotate(0)" width="32" height="16"></rect>
<rect style="fill:#f34616;" x="32" y="0" width="32" height="16"></rect>

*****

*****

<rect style="fill:#adf486;" x="352" y="608" width="32" height="16"></rect>
</svg>

 

 

Monika Gause
Community Expert
Community Expert
November 27, 2019

Illustrator can't read all possible SVG constructs. You can report this to http://illustrator.uservoice.com