问题
I'm looking for a way to display .icns
files in electron renderer.
In osx all icons (system icons, applications icons) stored in .icns
format. I need to show these icons in my electron application.
Currently, when I need to show an icon, I'm converting it to png on-the-fly and show converted result using <img />
tag.
Problem that it is super slow. Also, since all icons are stored in this format and all apps use it, there should be a fast native way to display them.
Any ideas on how can I use some native APIs to display icns image? Or maybe there is a faster way to show .icns files using electron api?
来源:https://stackoverflow.com/questions/40260151/display-icns-file-in-electron-renderer-process