Commit 00ae529b authored by Romain Courteaud's avatar Romain Courteaud

extend expects a list as parameter.

parent a525cc63
......@@ -18,9 +18,9 @@ class ImageMagickTransforms:
newwidth = kwargs.get('width','')
newheight = kwargs.get('height','')
if newwidth and newheight:
parameter_list.extend('-resize', '%sx%s!' % (newwidth, newheight))
parameter_list.extend(['-resize', '%sx%s!' % (newwidth, newheight)])
elif newwidth or newheight:
parameter_list.extend('-resize', '%sx%s' % (newwidth, newheight))
parameter_list.extend(['-resize', '%sx%s' % (newwidth, newheight)])
parameter_list.append('-')
parameter_list.append('%s:-' % self.format)
process = subprocess.Popen(parameter_list,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment