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).
gm = True
# we need version to be a valid integer 3-tuple
version = (1,0,0)
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
# IM >= 5.5.8 separates options for source and target files
# See http://www.imagemagick.org/Usage/basics/#why