From 1991d0ed24780cbb0064b7be7a733bc1ee9e241e Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Wed, 16 Sep 2020 04:12:26 +0200 Subject: [PATCH] Converters: always set version to something. Otherwise, it's common to compare "None >= (6,2,6)", which makes no sense. Set it to (0,0,0) so that any comparison fails (without an error message). --- lib/scripts/convertDefault.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/scripts/convertDefault.py b/lib/scripts/convertDefault.py index 5287e96375..d04fa78799 100644 --- a/lib/scripts/convertDefault.py +++ b/lib/scripts/convertDefault.py @@ -53,6 +53,8 @@ else: gm = True # we need version to be a valid integer 3-tuple version = (1,0,0) + else: + version = (0,0,0) # IM >= 5.5.8 separates options for source and target files # See http://www.imagemagick.org/Usage/basics/#why