diff --git a/src/main/java/tracing/PathAndFillManager.java b/src/main/java/tracing/PathAndFillManager.java index fbdc0c7e9..203b273d8 100644 --- a/src/main/java/tracing/PathAndFillManager.java +++ b/src/main/java/tracing/PathAndFillManager.java @@ -1858,7 +1858,8 @@ private boolean importNodes(final String descriptor, final TreeSet poi } if (spacingIsUnset) { - SNT.log("Inferring pixel spacing from imported points... "); + if (!headless) + SNT.log("Inferring pixel spacing from imported points... "); boundingBox.inferSpacing(points); x_spacing = boundingBox.xSpacing; y_spacing = boundingBox.ySpacing; @@ -2116,7 +2117,7 @@ protected static int guessTracesFileType(final String filename) { } try { - SNT.log("Guessing file type..."); + if (!headless) SNT.log("Guessing file type..."); InputStream is; final byte[] buf = new byte[8]; is = new FileInputStream(filename);