Command:
root@host:~#convert source.jpg -resize x500 -resize "500x<" -gravity center +repage target.jpg
Python code:
>> command_list = ['convert', 'source.jpg', '-resize', 'x500', '-resize', '\'500x<\'', '-gravity', 'center', 'target.jpg']
>> p = subprocess.call(command_list)
convert: invalid argument for option `'500x<'': -resize.
What's wrong in above code?