Can I use an SVG file for a toolbar icon instead of creating PNG files in several sizes?
I read the following in the Chrome Developer documentation for the browserAction icon:
Static images can be in any format WebKit can display, including BMP, GIF, ICO, JPEG, or PNG. For unpacked extensions, images must be in the PNG format.
-- here
Since WebKit supports SVG images, it stands to reason that I would be able to use an SVG icon. The lack of support for unpacked extensions seems odd, but it's easy enough to pack my extension.
Unfortunately, after I pack my extension and try to install it by dragging it to the Extensions tab in Chrome, it says Could not decode image: logo.svg
...
Image is very simple. I created it in Inkscape and saved it using "Save as type: Plain SVG (*.svg).
Unfortunately, you cannot use SVG as a toolbar icon and you need to generate a png of different sizes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With