I need to be able to load an heic image and extract and output all of the sub images as pngs similar to how preview does it. For example, if you open a dynamic heic wallpaper in preview, it shows all the images in the sidebar with their names.
How do you do this? I've tried to use NSImage like below. But that only outputs a single image:
How do you do this? I've tried to use NSImage like below. But that only outputs a single image:
Code Block swift let image = NSImage(byReferencing: url) image.writePNG(toURL: newUrl)