title: Converting .py to .exe with an transparent icon turns the background black
body: <p>I am wondering if anyone knows how to prevent pyinstaller from giving a solid black background to transparent icons.</p>
  <p>This is the line I'm using to convert from .py to .exe: <code>pyinstaller --onefile --noconsole --icon=pig.ico my_file.py</code></p>
  <p>For reference, <a href="https://i.stack.imgur.com/HZeUb.png" rel="nofollow noreferrer">this is what the icon looks like before</a>, and <a href="https://i.stack.imgur.com/BxuEX.png" rel="nofollow noreferrer">this is what it looks like after</a> converting to exe.</p>
  <p>I want to retain the transparency and not have that black background.</p>
  <p>Any help would be greatly appreciated.</p>