Forcing 32 bit PNG export
I'm working on a script where I need to export certain assets as 32 bit PNGs (PNG24 + Alpha). When exporting these manually - Quick Export as PNG works perfectly every time and preserves an alpha bit depth - even if the image has no transparency. But Quick Export as PNG doesn't work in scripting.
When I've tried exporting via other means, when the image in question doesn't have transparency the export results in no alpha bit depth. Is there a way to force alpha bit depth via other export means in scripting?
I've tried using various save for web legacy scripting settings with transparency = true, as well as normal save scripts that set the file type to PNG, but so far the only 2 methods that preserve transparency are Quick Export as PNG and the Generator Image assets - but from what I can tell there is no way to 'toggle' Generator on/off within a script.
Any help would be appreciated!
