Can't control the progressive (interlaced) functionality for JPEG using Save for web (legacy)
When saving for web using Applescript (or Javascript) I've found that when trying to control the progressive (interlaced) functionality, it will only work if it's already set in the 'Save for web' panel. If I tick the 'progressive' box when saving a JPEG, and hit Save, it doesn't matter what scripts I throw at it afterwards, it will always export the JPEG as progressive.
In pure Applescript, the progressive option below (shown as 'interlaced') doesn't impact the outcome:
tell application "adobe photsohop 2022"
set exportPath to "/Users/blah.blah/Desktop/test"
set exportJPEGOptions to {class:save for web export options, interlaced:false, optimized size:true, quality:100, transparency:false, web format:JPEG, png eight:false, with profile:true}
export current document in (exportPath & ".jpg" as string) as save for web with options exportJPEGOptions
delay 0.1
end tell
When running Javascript via Applescript the 'interlaced' option below also doesn't impact the outcome:
tell application "Adobe Photoshop 2022"
do javascript "var sfwOptions = new ExportOptionsSaveForWeb();
sfwOptions.format = SaveDocumentType.JPEG;
sfwOptions.includeProfile = true;
sfwOptions.interlaced = false;
sfwOptions.optimized = true;
sfwOptions.quality = 100;
var saveFile = new File( '/Users/blah.blah/Desktop/test.jpg' );
activeDocument.exportDocument( saveFile, ExportType.SAVEFORWEB, sfwOptions );"
end tell
Every other option seems to impact the outcome of the JPEG apart from the 'interlaced' setting, which makes no difference at all. For some reason, whatever 'progressive' choice is made in the 'Save for Web' panel, it sticks, and doesnt' budge until selected (or unselected) again.
I want to ensure all of the JPEGs are saved down as optimized baseline JPEGs, no matter what it's been saved as in the 'Save for Web' panel.
