2 Replies Latest reply on Aug 1, 2017 2:40 PM by zervouli

    JPEGSaveOptions.matte does not seem to have any effect


      I've tried setting it to MatteType.BLACK, MatteType.BACKGROUND, etc. but the background of the saved image is always white. Setting a matte color works with the normal Photoshop SaveAs dialog when saving as a JPEG but apparently not in scripts:


        jpegOptions = new JPEGSaveOptions();
        jpegOptions.embedColorProfile = true;
        jpegOptions.formatOptions = FormatOptions.STANDARDBASELINE;
        jpegOptions.matte = MatteType.BLACK;
        jpegOptions.quality = 8;
        doc.saveAs(jpegFile, jpegOptions, true, Extension.LOWERCASE);


      Is there something else I need to do?


      People have recommended using ExportOptionsSaveForWeb/exportDocument instead but it would be nice to be able to use the canonical method if it works.