I'm trying to write a Python script to convert a bunch of images.
It's something like the following code (after a huge minimization):
#!/usr/bin/python
# -*- coding: utf-8 -*-
from subprocess import call
cmd = ' '.join(['convert.exe', '-resize', '110', 'foo\\a.jpg', 'bar\\a.jpg'])
print cmd
call(cmd)
I get the error below after executing it:
Parameter not valid - 110
While when I copy / paste the string emitted from the script on the command line the image convertion works perfectly. What did I miss?
I would say that the error is most likely the result of two things
shell=True
as the second argument.