diff scale_image.py @ 5:85666e555698 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/scale_image/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:13:13 +0000
parents 3179853faae9
children
line wrap: on
line diff
--- a/scale_image.py	Thu Apr 04 15:26:23 2024 +0000
+++ b/scale_image.py	Wed Apr 24 08:13:13 2024 +0000
@@ -1,6 +1,7 @@
 import argparse
 import sys
 
+import giatools.io
 import numpy as np
 import skimage.io
 import skimage.transform
@@ -10,7 +11,7 @@
 
 def scale_image(input_file, output_file, scale, order, antialias):
     Image.MAX_IMAGE_PIXELS = 50000 * 50000
-    im = skimage.io.imread(input_file)
+    im = giatools.io.imread(input_file)
 
     # Parse `--scale` argument
     if ',' in scale: