Author Topic: SVG files made with Inkscape do not open in my browser  (Read 5028 times)

February 12, 2017, 06:03:05 PM
Read 5028 times

gvigner

  • Newbie

  • Offline
  • *

  • 1
Hi,

I made a logo with Inkscape 0.91 on OSX, saved it with default options in "SVG (inkscape)" format, but when I open it either with Google Chrome or Firefox, I get the following error message :

Quote (selected)
This page contains the following errors:

error on line 25 at column 1: Encoding error
Below is a rendering of the page up to the first error.

Below is the content of my logo at lines 23 to 27.
Code: [Select]
23:  <metadata
24:     id="metadata3">
25: <?xpacket begin="ÿ" id="W5M0MpCehiHzreSzNTczkc9d"?>    <x:xmpmeta                                                                 
26:       x:xmptk="Adobe XMP Core 5.6-c067 79.157747, 2015/03/30-23:40:42        ">
27:      <metadata>

Kind regards,
Gilles

February 13, 2017, 03:53:07 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

Support for SVG varies quite a lot among different image viewers and browsers.  So even if we can fix that code, your image still might not be displayed properly.  Although having said that, the part of the code that you're showing is not part of the image.  It's more for the browser or image viewer.

I'm not familiar enough with XML code to be able to either recognize what's wrong, or to fix it.  But I can probably give you some clues, and ask some questions whose answers might help other members to answer.

I do know some simple HTML though, so at least I understand some basic things.  One thing that I notice on line 25 that I've never seen in looking at HTML/XML, is where it says:  begin="ÿ"

That "y"  with the 2 dots above it, is not a character that I recognize as valid code.   Although I'll say again that I'm not an expert at all.

I also notice "Adobe" in that metadata, and I don't know why it would be there, if the image was made entirely in Inkscape.  Was it made from a pre-existing PDF maybe?  Or AI file?  Oh ok, after some brief search, that is metadata from a Photoshop image or file.

My best guess is the conversion from whatever came from  PS is causing this problem.  Does that ring any bells?  Is there something from PS that could be deleted?

If you could share the SVG file with us, we could test and investigate more fully.  But if you can't share it, we can keep with the Q and A routine.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

February 13, 2017, 10:20:05 AM
Reply #2

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Probably the easiest solution would be to copy the contents of the file into a new file in Inkscape.
This will (most probably) get rid of any additional Adobe cruft.

February 13, 2017, 12:12:54 PM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann