Pass bytestrings to command_output

Fix #1485
This commit is contained in:
Markus Unterwaditzer 2015-06-01 22:09:08 +02:00
parent 6e8f06679c
commit 7f36fdd3cd

View file

@ -119,7 +119,7 @@ def pil_getsize(path_in):
def im_getsize(path_in):
try:
out = util.command_output(['identify', '-format', '%w %h',
out = util.command_output([b'identify', b'-format', b'%w %h',
util.syspath(path_in)])
except subprocess.CalledProcessError:
log.warn(u'IM cannot compute size of {0}',