Export to TIFF - Embedding ICC Profile
Hi,
I guess that this has a solution, but it looks like there is no exportOption for TIFF files, however it is available in the dialog box when Exporting TIFFs.
In general my script looks like this:
var exportOptions = new ExportOptionsTIFF();
var type = ExportType.TIFF;
var fileSpec = new File(outputDir);
var fileFolder = new Folder(outputDir + '/' + format.toUpperCase());
if(!fileFolder.exists) fileFolder.create();
//exportOptions.antiAliasing = true;
exportOptions.byteOrder = TIFFByteOrder.IBMPC;
exportOptions.imageColorSpace = ImageColorSpace.CMYK;
exportOptions.IZWCompression = true;
exportOptions.embedICCProfile = true; // THIS DOES NOT MAKE AN ERROR IN THE COMPILER BUT DOES NOT WORK
// Export to 300DPI
exportOptions.resolution = 300;
var resFolder = new Folder(fileFolder + '/' + exportOptions.resolution + 'DPI');
if(!resFolder.exists) resFolder.create();
fileSpec = new File(resFolder);
app.activeDocument.exportFile(fileSpec, type, exportOptions );
// Export to 72DPI
exportOptions.resolution = 72;
var resFolder = new Folder(fileFolder + '/' + exportOptions.resolution + 'DPI');
if(!resFolder.exists) resFolder.create();
fileSpec = new File(resFolder);
app.activeDocument.exportFile(fileSpec, type, exportOptions );
My question is how to export via JSX including the working ICC Profile. Is it a question that a profile has to be saved in the AI file, otherwise the export does not see it?