2010-01-23

SVG plugin for Firefox

Firefox有內建對SVG的支援,不過並不完整。See project status of SVG in Firefox. 安裝 Adobe SVG Viewer可以更正確地處理SVG媒體。

Plugin的安裝大致上照這篇的作法
Firefox plugins的安裝

Adobe SVG Viewer

1. 安裝 Adobe SVG Viewer6.0 ( 下載處 )
2. 複製 NPSVG6.dll 和 NPSVG6.zip 到你的 firefox 安裝目錄的 plugins 目錄底下。以上檔案通常可以在 C:\Program Files\Common Files\Adobe\SVG Viewer 6.0\Plugins\ 找到。
3. By default Firefox will use its native support of SVG and not the Adobe Viewer plugin. To change this:
  • In the firefox location bar, type: about:config
  • Search for: svg
  • Set 'svg.enabled' to 'false' (you can do this by double clicking on the row. )
This turns off Firefox's native SVG renderer thus leaving SVG rendering up to the Adobe SVG Viewer.

不過安裝完後,到Adobe的測試頁面,還是會跳出一個視窗問你要怎麼處理svgz的檔案,而圖形還是什麼都看不到。

看一下原始碼 ( 比較 Adobe的測試頁面對岸的這個網頁 ),似乎是因為MIME type的關係,Adobe的測試頁面是用"text/plain"而非"image/svg+xml",所以會出問題。Opera好像也不能正確瀏 覽,IE7倒沒問題。