Skip to content

ExportOptionsTIFF

exportOptionsTIFF

Options for exporting a document as a TIFF file, used with the Document.exportFile() method. All properties are optional.

When you export a document, the appropriate file extension is appended automatically. You should not include any file extension in the file specification.


exportOptionsTIFF.antiAliasing

If true, the exported image should be anti-aliased.

Default: true.

Boolean.


exportOptionsTIFF.artboardRange

If saveMultipleArtboards is true, this is considered for multi-asset extraction, which specifies the artboard range. An empty string extracts all the artboards.

Default: empty String.

String.


exportOptionsTIFF.byteOrder

The byte order to use in the new file.

TIFFByteOrder


exportOptionsTIFF.imageColorSpace

The color space of the exported file.

Default: ImageColorSpace.RGB.

ImageColorSpace


exportOptionsTIFF.lZWCompression

If true, use IZW compression in the new file.

Boolean.


exportOptionsTIFF.resolution

Resolution of the exported file in dots per inch (dpi).

Range: 72.0 to 2400.0.

Default: 150.0.

Number (double).


exportOptionsTIFF.saveMultipleArtboards

If true, all artboards or range of artboards are saved.

Default: false.

Number (double).


// Exports current document to dest as a TIFF file with specified options,
// dest contains the full path including the file name
function exportFileToPSD(dest) {
if (app.documents.length > 0) {
var exportOptions = new ExportOptionsTIFF();
exportOptions.resolution = 150;
exportOptions.byteOrder = TIFFByteOrder.IBMPC;
exportOptions.lZWCompression = false;
var type = ExportType.TIFF;
var fileSpec = new File(dest);
app.activeDocument.exportFile(fileSpec, type, exportOptions);
}
}