I am trying to create a custom preview collection using utils.previews API something like this:
icons_dict = bpy.utils.previews.new() icons_dict.load("custom_icon", os.path.join(icons_dir, "icon.png"), 'IMAGE')
I am wondering if it is possible to to load a preview from an internal image instead of file?
I can use the icons_dict.new() API to create an empty preview but I have no idea how to load it with pixels from another image. Any ideas?