Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions omero/export_scripts/Batch_Image_Export.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,20 @@ def getTrange(sizeT, scriptParams):
pass

# do the saving to disk
if format == 'OME-TIFF':
for img in images:
log("Exporting image as OME-TIFF: %s" % img.getName())
for img in images:
if img._prepareRE().requiresPixelsPyramid():
log( " ** Can't export a 'Big' image to %s. **" % format)
if len(images) == 1:
return None, "Can't export a 'Big' image to %s." % format
continue
else:
log("Exporting image as %s: %s" % (format, img.getName()))

if format == 'OME-TIFF':
saveAsOmeTiff(conn, img, folder_name)
else:
if img._prepareRE().requiresPixelsPyramid():
log( " ** Can't export a 'Big' image to OME-TIFF. **")
if len(images) == 1:
return None, "Can't export a 'Big' image to OME-TIFF."
continue
saveAsOmeTiff(conn, img, folder_name)

else:
for img in images:
log("\n----------- Saving planes from image: '%s' ------------" % img.getName())
sizeC = img.getSizeC()
sizeZ = img.getSizeZ()
Expand Down