diff --git a/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java b/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java index 51d4a2b..9665304 100755 --- a/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java +++ b/src/main/java/com/glencoesoftware/pyramid/PyramidFromDirectoryWriter.java @@ -1151,8 +1151,6 @@ public void convertToPyramid() InterruptedException, DependencyException { for (PyramidSeries s : series) { - executor = new ThreadPoolExecutor( - maxWorkers, maxWorkers, 0L, TimeUnit.MILLISECONDS, tileQueue); convertPyramid(s); } StopWatch t0 = new Slf4JStopWatch("writeIFDs"); @@ -1179,13 +1177,17 @@ private void convertPyramid(PyramidSeries s) int rgbChannels = s.rgb ? 3 : 1; int bytesPerPixel = FormatTools.getBytesPerPixel(s.pixelType); - try { - for (int resolution=0; resolution