changeset 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 72b8a6b7661b
files scale_image.py scale_image.xml
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
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:
--- a/scale_image.xml	Thu Apr 04 15:26:23 2024 +0000
+++ b/scale_image.xml	Wed Apr 24 08:13:13 2024 +0000
@@ -4,7 +4,7 @@
         <import>creators.xml</import>
         <import>tests.xml</import>
         <token name="@TOOL_VERSION@">0.18.3</token>
-        <token name="@VERSION_SUFFIX@">0</token>
+        <token name="@VERSION_SUFFIX@">1</token>
     </macros>
     <creator>
         <expand macro="creators/bmcv" />
@@ -21,6 +21,7 @@
         <requirement type="package" version="10.0.1">pillow</requirement>
         <requirement type="package" version="1.24.4">numpy</requirement>
         <requirement type="package" version="2021.7.2">tifffile</requirement>
+        <requirement type="package" version="0.1">giatools</requirement>
     </requirements> 
     <command detect_errors="aggressive"><![CDATA[