diff --git a/src/main/java/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java b/src/main/java/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java index c6285345c..a240fa443 100644 --- a/src/main/java/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java +++ b/src/main/java/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java @@ -396,7 +396,12 @@ String getExtendedName(String name, String format) */ String getPartialImageName() { - return UIUtilities.removeFileExtension(model.getImageName()); + String name = model.getImageName(); + if (UIUtilities.isWindowsOS()) { + // Special handling for NTFS ADS: Don't accept colon in the fileName. + name = name.replaceAll(":", "_"); + } + return UIUtilities.removeFileExtension(name); } /**