diff --git a/src/imcflibs/imagej/shading.py b/src/imcflibs/imagej/shading.py index bd0774bc870fc7589b67bf3607f4ca958a5c67fd..92dcd942c0b324d3a2470ab07868c4a07044b367 100644 --- a/src/imcflibs/imagej/shading.py +++ b/src/imcflibs/imagej/shading.py @@ -134,6 +134,10 @@ def process_folder(path, suffix, outpath, model_file, fmt): # the model needs to be shown, otherwise the IJ.run() call ignores it try: model.show() + canvas = model.getCanvas() + for _ in range(5): + # we have to show it, but we can make it smaller: + canvas.zoomOut(100, 100) except AttributeError: misc.error_exit("Opening shading model [%s] failed!" % model_file)