Is there a way I can save a .tif and not have it save the .tif_metadata file as well?
I'm currently using:
Code: Select all
Zen.Application.Save(image,pathAndFileName)
Craig
Code: Select all
Zen.Application.Save(image,pathAndFileName)
Code: Select all
# Save the image with no metadata
expSet=Zen.Processing.Utilities.Settings.SingleFileExportSetting(ZenExportFileType.TIFF)
expSet.CreateFolder = False ## Do not create new folder for each image
Zen.Processing.Utilities.ExportSingleFile(image,expSet,pathAndFileName) #Export image
Code: Select all
image = Zen.Application.Documents.ActiveDocument
myXML = '''
<ProcessingParameters Function="SingleFileExport">
<FunctionParameters Function="SingleFileExport">
[B]<DestFolder>C:\\Users\\MyUser\\Pictures\\tmp</DestFolder>
[/B] <SubsetSelectionMode>All</SubsetSelectionMode>
<SubSetString></SubSetString>
<MultichannelMode>ChannelComposite</MultichannelMode>
<ProcessingModeFlags>WithDisplaySettings</ProcessingModeFlags>
<MCSelectionMode>SubsetDefinition</MCSelectionMode>
<UseChannelNames>false</UseChannelNames>
<BurnInDataZone>false</BurnInDataZone>
<ImageEncoderClsid>6b9e169f-8f55-404c-af09-771545a0aba8</ImageEncoderClsid>
<ExportImageWriterOptions>
<AllowFormatsOtherThanRGB24orGray8>false</AllowFormatsOtherThanRGB24orGray8>
<TiffCompressionOption>Lzw</TiffCompressionOption>
</ExportImageWriterOptions>
<PanOption>All</PanOption>
<TileMode>Retile</TileMode>
<RetileSettings>
<TileCountX>1</TileCountX>
<TileCountY>1</TileCountY>
<OverlapXPercent>0</OverlapXPercent>
<OverlapYPercent>0</OverlapYPercent>
<MaxTileCountX>500</MaxTileCountX>
<MaxTileCountY>500</MaxTileCountY>
</RetileSettings>
<Zoom>1</Zoom>
[B] <GenXMLFiles>false</GenXMLFiles>[/B]
<CreateSubFolder>false</CreateSubFolder>
<CreateZipArchive>false</CreateZipArchive>
[B] <Prefix>myFileName</Prefix>[/B]
</FunctionParameters>
</ProcessingParameters>
'''
Zen.Processing.Utilities.ExportSingleFile(image,myXML)