Photoshop 2022 javascript scripting svg support
Photoshop 2022 seems to support opening SVGs but I can't find support for it in the javascript scripting document (https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-javascript-ref-2020.pdf) to specify the size to rasterize it at. It will let me use EPSOpenOptions but doesn't seem to respect the width and height that I'm passing in and always opens at 44.443" x 44.443" and is very slow. I think I might be able to use the Script Listener to get a function that I need but was just curious if anyone has worked with SVGs in Photoshop javascript scripting. Thanks!
// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop
// in case we double clicked the file
app.bringToFront();
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.POINTS;
app.preferences.smartQuotes = false;
epsOpt = new EPSOpenOptions();
epsOpt.width = 10;
epsOpt.height = 10;
pdfFile = app.open(new File("(full path)",epsOpt,true));
