<ul dir="auto">
<li>Electron version: v1.6.9</li>
<li>Operating system: Arch Linux with Gnome as DE</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">NativeImage does not support SVG images :( I've to convert the images to png's and there's no easy way to doing so (use external libraries that almost every one of them requires PhantomJs...)</p>

<p dir="auto">Every Linux distro supports using SVG icons for Tray icons. And so should nativeImage on Linux desktop.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Doesn't work as SVG icons are not supported</p>

<h3 dir="auto">How to reproduce</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const nativeImage = require('electron').nativeImage

let image = nativeImage.createFromPath('/Users/somebody/images/icon.svg')
console.log(image)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">nativeImage</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">nativeImage</span>

<span class="pl-k">let</span> <span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">nativeImage</span><span class="pl-kos">.</span><span class="pl-en">createFromPath</span><span class="pl-kos">(</span><span class="pl-s">'/Users/somebody/images/icon.svg'</span><span class="pl-kos">)</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">image</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">The reason why I need this is that I've created a simple package to look for an icon on current icon theme used by the user. This way, electron applications can look more native with tray icons that can be themed by any theme designer (without any hackish solution like extracting the user file...)<br>
And every icon theme on Linux is using SVG icons.  I hope this convince you enough to make this happen👍</p>
<p dir="auto">When building the latest 0.27.3 the mac app bundle is about 142MB of which 136MB come from the Electron Framework.</p>
<p dir="auto">Is there any way to make this package smaller?</p>