Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view this svg file on a Mac?

I created an svg file from a photo using http://www.autotracer.org, but can't view the image in any of my browsers (Chrome/FF/Safari).

Chrome and FF display the underlying code in the browser rather than the image; Safari shows nothing, just a white page.

Edit: Perhaps this should/could be migrated to the apple stackexchange?

like image 980
Drewdavid Avatar asked Feb 11 '15 05:02

Drewdavid


People also ask

How can I open SVG files on Mac?

Run Safari browser on your mac. Drag and drop SVG file to Safari for opening.

How do I view SVG files?

Just launch your browser and click File > Open to choose the file you want to view. It'll then be displayed in your browser. Opening an SVG image with a built-in programme on your computer is just as easy.


1 Answers

Standalone SVG files are required to have the xmlns attribute specified.

If you change the second line of your file to:

<svg width="3032" height="2008" xmlns="http://www.w3.org/2000/svg">

The SVG will work properly when loaded into a browser.

like image 181
Paul LeBeau Avatar answered Oct 17 '22 09:10

Paul LeBeau