This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I view with Firefox my local windows .svg files. I can view then OK if I change type to .htm.

  • 4
  • 1 nwere nsogbu anwere nsogbu a
  • 1 view
  • Nzaghachi ikpeazụ nke pabristow

more options

I have a program writing SVG files and these work file when embedded into an html file.

As a trivial example:

<svg version="1.1"
     baseProfile="full"
     xmlns="http://www.w3.org/2000/svg"
		 xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns:ev="http://www.w3.org/2001/xml-events"
     type="image/svg+xml">
  <rect width="100%" height="100%" fill="red" />
  <circle cx="150" cy="100" r="80" fill="green" />
  <text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text>
</svg>

If this file has the file type html or htm, I can view OK with Firefox, but if it is of type .svg, Firefox wants to save or try another program (Inkscape, Opera ...) - I have tried configuring Firefox as the SVG program, but this seems not permitted.

This used to work OK on older version of Firefox and was very convenient during testing. Please tell me how can I make it work again?

I have a program writing SVG files and these work file when embedded into an html file. As a trivial example: <pre><nowiki><svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" type="image/svg+xml"> <rect width="100%" height="100%" fill="red" /> <circle cx="150" cy="100" r="80" fill="green" /> <text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text> </svg></nowiki></pre> If this file has the file type html or htm, I can view OK with Firefox, but if it is of type .svg, Firefox wants to save or try another program (Inkscape, Opera ...) - I have tried configuring Firefox as the SVG program, but this seems not permitted. This used to work OK on older version of Firefox and was very convenient during testing. Please tell me how can I make it work again?

Edeziri site na cor-el

All Replies (4)

more options

Try to delete the mimeTypes.rdf file in the Firefox Profile Folder to reset all file actions.

more options

Sadly, deleting memTypes.rdf has no effect on this problem.

Right clicking on the demo.svg file and choosing OpenWith, and then Firefox produces a window as below, choosing Firefox as the open program gets you back to the same window. (Ticking the 'always use this program' option box causes an endless loop opening endless tabs until Firefox is stopped!!!).

Firefox obviously can render SVG files, either embedded or named .html but something is blocking this if the Windows file type is .svg (a regression from previous behaviour).

more options

I don't have any problems with opening such a SVG file in Firefox.

You can try to check the registry and do a search for svg.

  • HKEY_CLASSES_ROOT\.svg

You can also check the linked MIME type in the MIME Database.

  • HKEY_CLASSES_ROOT\MIME\Database\Content Type
more options

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.svg] @="inkscape.svg" "Content Type"="application/svg"

As my default program for svg is Inkscape.

(but nothing in HKEY_CLASSES_ROOT\MIME\Database\Content Type )

Control Panel\All Control Panel Items\Default Programs\Set Associations

changing

.svg SVG Document Inkscape

to

.svg SVG Document Firefox

I have now Associated .svg with Firefox but the HKCR entry is still saying as above.

So I have deleted this entry completely, so Inkscape is not longer associated with .svg?

svg files now show with the firefox icon as expected, but when I try to open I get into the endless loop as before :-(

Other suggestions? Thanks.