Display .icns file in electron renderer process

霸气de小男生 提交于 2019-12-07 04:56:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!