Export as... script
Hi,
I am currently working on a script that lets the user export an image in various resolutions (first photoshop script I'm working on...).
there is the method Document.exportDocument, but I can only use ILLUSTRATORPATHS or SAVEFORWEB as export type, which is equivalent to File > Export > Paths To Illustrator or File > Save for Web and Devices (see documentation), the latter being replaced by File > Export As... in more recent versions of photoshop CC.
So far I wasn't able to locate the javascript scripting reference for CC 2016 and later, hence my question: does anyone know either where to find the javascript reference or what the corresponding function is to do a File > Export As... in the script?
I'd prefer not to use the legacy save for web since the quality of the new export as is way better at the same filesize.
best,
peter